Fix cli.php users delete option
This commit is contained in:
parent
20513e7f23
commit
131d133af1
1
cli.php
1
cli.php
|
@ -31,6 +31,7 @@ function cli__users($args) {
|
||||||
case 'delete':
|
case 'delete':
|
||||||
case 'del':
|
case 'del':
|
||||||
$args = array_slice($args, 1);
|
$args = array_slice($args, 1);
|
||||||
|
if (count($args) !== 1) $help();
|
||||||
if (!isset($users[$args[0]]))
|
if (!isset($users[$args[0]]))
|
||||||
$msg = 'User "'.$args[0].'" does not exist.';
|
$msg = 'User "'.$args[0].'" does not exist.';
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue