1
0
Fork 0
mirror of https://github.com/RaspbianFrance/raspisms.git synced 2025-05-04 23:36:26 +02:00

Correct error on php 7.0

Line 54 returns array to string conversion on PHP 7. This does not allow the command to be executed as the command is understood as an array. Brace are correcting this problem and should be compatible with older versions of PHP.
This commit is contained in:
extrablind 2016-11-29 14:56:06 +01:00 committed by GitHub
parent 1df1666846
commit de1c028bd1

View file

@ -51,5 +51,5 @@
exit(2); //Sorti avec erreur exit(2); //Sorti avec erreur
} }
$controller->$options['c'](); //On appel la fonction $controller->{$options['c']}(); //On appel la fonction