Skip to content

Commit 5b70ef0

Browse files
Merge pull request #249 from nextcloud/fix/user-count
🐛 FIX: wrong user count
2 parents a3da95f + 0ea46a1 commit 5b70ef0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Base.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public function userExists($uid) {
216216
/**
217217
* Count the number of users.
218218
*
219-
* @return int|bool The number of users on success false on failure
219+
* @return int the number of users
220220
*/
221221
public function countUsers() {
222222
$connection = \OC::$server->getDatabaseConnection();
@@ -228,6 +228,6 @@ public function countUsers() {
228228
$users = $result->fetchColumn();
229229
$result->closeCursor();
230230

231-
return $users > 0;
231+
return $users;
232232
}
233233
}

0 commit comments

Comments
 (0)