Π·Π΅ΡΠΊΠ°Π»ΠΎ ΠΈΠ· https://github.com/nextcloud/user_external.git
π FIX: wrong user count
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
This commit is contained in:
Π ΠΎΠ΄ΠΈΡΠ΅Π»Ρ
d0e609438e
ΠΠΎΠΌΠΌΠΈΡ
0ea46a1730
|
@ -216,7 +216,7 @@ abstract class Base extends \OC\User\Backend {
|
|||
/**
|
||||
* 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();
|
||||
|
@ -228,6 +228,6 @@ abstract class Base extends \OC\User\Backend {
|
|||
$users = $result->fetchColumn();
|
||||
$result->closeCursor();
|
||||
|
||||
return $users > 0;
|
||||
return $users;
|
||||
}
|
||||
}
|
||||
|
|
ΠΠ°Π³ΡΡΠ·ΠΊΠ°β¦
Π‘ΡΡΠ»ΠΊΠ° Π² Π½ΠΎΠ²ΠΎΠΉ Π·Π°Π΄Π°ΡΠ΅