We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3da95f + 0ea46a1 commit 5b70ef0Copy full SHA for 5b70ef0
1 file changed
lib/Base.php
@@ -216,7 +216,7 @@ public function userExists($uid) {
216
/**
217
* Count the number of users.
218
*
219
- * @return int|bool The number of users on success false on failure
+ * @return int the number of users
220
*/
221
public function countUsers() {
222
$connection = \OC::$server->getDatabaseConnection();
@@ -228,6 +228,6 @@ public function countUsers() {
228
$users = $result->fetchColumn();
229
$result->closeCursor();
230
231
- return $users > 0;
+ return $users;
232
}
233
0 commit comments