diff options
Diffstat (limited to 'cli/_cli.php')
| -rw-r--r-- | cli/_cli.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/_cli.php b/cli/_cli.php index ed884bbb6..10a92385a 100644 --- a/cli/_cli.php +++ b/cli/_cli.php @@ -28,8 +28,7 @@ function cliInitUser($username) { fail('FreshRSS error: invalid username: ' . $username . "\n"); } - $usernames = listUsers(); - if (!in_array($username, $usernames)) { + if (!FreshRSS_user_Controller::userExists($username)) { fail('FreshRSS error: user not found: ' . $username . "\n"); } |
