X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fcdb.php;h=453464a685a2731ef0b9d7836ac477f6b92c7739;hb=46deecce89b76e2d45e61f5f696928bb859ae324;hp=2e252adb037b3303266706d052ea00d024b11d94;hpb=0b8f48c5353bb12faef3546c80a76aea6d3956ea;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cdb.php b/maintenance/cdb.php index 2e252adb03..453464a685 100644 --- a/maintenance/cdb.php +++ b/maintenance/cdb.php @@ -28,13 +28,13 @@ use \Cdb\Reader as CdbReader; require_once __DIR__ . '/commandLine.inc'; function cdbShowHelp( $command ) { - $commandList = array( + $commandList = [ 'load' => 'load a cdb file for reading', 'get' => 'get a value for a key', 'exit' => 'exit cdb', 'quit' => 'exit cdb', 'help' => 'help about a command', - ); + ]; if ( !$command ) { $command = 'fullhelp'; } @@ -61,7 +61,7 @@ do { exit; } - $args = explode( ' ', $line ); + $args = explode( ' ', $line, 2 ); $command = array_shift( $args ); // process command