Skip to content

Commit

Permalink
🐛 FIX: wrong user count
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Sulzer <[email protected]>
  • Loading branch information
violoncelloCH committed Mar 30, 2024
1 parent d0e6094 commit 0ea46a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function userExists($uid) {
/**
* Count the number of users.
*
* @return int|bool The number of users on success false on failure
* @return int the number of users
*/
public function countUsers() {
$connection = \OC::$server->getDatabaseConnection();
Expand All @@ -228,6 +228,6 @@ public function countUsers() {
$users = $result->fetchColumn();
$result->closeCursor();

return $users > 0;
return $users;
}
}

0 comments on commit 0ea46a1

Please sign in to comment.