From d1ee73336d5f484965636b989251ad3228d29d7d Mon Sep 17 00:00:00 2001 From: extrablind Date: Tue, 29 Nov 2016 14:56:06 +0100 Subject: [PATCH] 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. --- console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console.php b/console.php index be88575..97d37d8 100755 --- a/console.php +++ b/console.php @@ -51,5 +51,5 @@ exit(2); //Sorti avec erreur } - $controller->$options['c'](); //On appel la fonction + $controller->{$options['c']}(); //On appel la fonction