Skip to content

Commit

Permalink
CLI do no list un-created user admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Mar 3, 2017
1 parent a754131 commit ae1bf1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/list-users.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

$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);
}
Expand Down

0 comments on commit ae1bf1f

Please sign in to comment.