Merge pull request #4538 from MrPetovan/bug/4535-user-not-found
Fix missing logical not in admin/users
This commit is contained in:
commit
8004a1bd93
1 changed files with 1 additions and 1 deletions
|
@ -1568,7 +1568,7 @@ function admin_page_users(App $a)
|
||||||
if ($a->argc > 2) {
|
if ($a->argc > 2) {
|
||||||
$uid = $a->argv[3];
|
$uid = $a->argv[3];
|
||||||
$user = dba::selectFirst('user', ['username', 'blocked'], ['uid' => $uid]);
|
$user = dba::selectFirst('user', ['username', 'blocked'], ['uid' => $uid]);
|
||||||
if (DBM::is_result($user)) {
|
if (!DBM::is_result($user)) {
|
||||||
notice('User not found' . EOL);
|
notice('User not found' . EOL);
|
||||||
goaway('admin/users');
|
goaway('admin/users');
|
||||||
return ''; // NOTREACHED
|
return ''; // NOTREACHED
|
||||||
|
|
Loading…
Reference in a new issue