diff options
| author | 2017-03-03 11:47:04 +0100 | |
|---|---|---|
| committer | 2017-03-03 11:47:04 +0100 | |
| commit | ae1bf1f56fcfa920db3d5092cb18dced4cbcb434 (patch) | |
| tree | 26b8a1dd10019226c8e3f043c42c3b478e547ddd /cli | |
| parent | a7541315c3eb46c156fe79aca9110f7275a4215d (diff) | |
CLI do no list un-created user admin
https://github.com/FreshRSS/FreshRSS/issues/1448
Diffstat (limited to 'cli')
| -rwxr-xr-x | cli/list-users.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/list-users.php b/cli/list-users.php index e690ff451..610a9dd7b 100755 --- a/cli/list-users.php +++ b/cli/list-users.php @@ -4,7 +4,7 @@ require('_cli.php'); $users = listUsers(); sort($users); -if (FreshRSS_Context::$system_conf->default_user !== '') { +if (FreshRSS_Context::$system_conf->default_user !== '' && in_array(FreshRSS_Context::$system_conf->default_user, $users, true)) { array_unshift($users, FreshRSS_Context::$system_conf->default_user); $users = array_unique($users); } |
