From f52f81c1d4bde562c24c0ba941c6d37b23d80970 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 29 Apr 2020 17:05:05 +0200 Subject: [PATCH] LScli : fix command handler call --- public_html/includes/class/class.LScli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LScli.php b/public_html/includes/class/class.LScli.php index 325f4ad7..2ef317c2 100644 --- a/public_html/includes/class/class.LScli.php +++ b/public_html/includes/class/class.LScli.php @@ -155,7 +155,7 @@ class LScli { // Run command LSlog :: debug('Run '.basename($argv[0])." command $command with argument(s) '".implode("', '", $command_args)."'"); try { - $result = call_user_func($cli_commands[$command]['handler'], $command_args); + $result = call_user_func(self :: $commands[$command]['handler'], $command_args); exit($result?0:1); }