Skip to content

Commit

Permalink
fix: no ability to create a new category
Browse files Browse the repository at this point in the history
  • Loading branch information
modelrailroader authored Jul 26, 2024
1 parent 7dbf431 commit 77bc8e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions phpmyfaq/src/phpMyFAQ/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,16 +707,16 @@ public function getAllUsers(bool $withoutAnonymous = true, bool $allowBlockedUse
return [];
}

$result = [];
$users = [];
if ($this->configuration->getDb()->numRows($result) === 0) {
return $result;
}

while ($row = $this->configuration->getDb()->fetchArray($result)) {
$result[] = (int) $row['user_id'];
$users[] = (int) $row['user_id'];
}

return $result;
return $users;
}

/**
Expand Down

0 comments on commit 77bc8e4

Please sign in to comment.