mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: Fix a small typing problem is user manager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
db94aeb96e
commit
892f815d2e
1 changed files with 2 additions and 1 deletions
|
|
@ -492,6 +492,7 @@ class Manager extends PublicEmitter implements IUserManager {
|
|||
|
||||
public function countUsersTotal(int $limit = 0, bool $onlyMappedUsers = false): int|false {
|
||||
$userCount = false;
|
||||
|
||||
foreach ($this->backends as $backend) {
|
||||
if ($onlyMappedUsers && $backend instanceof ICountMappedUsersBackend) {
|
||||
$backendUsers = $backend->countMappedUsers();
|
||||
|
|
@ -505,7 +506,7 @@ class Manager extends PublicEmitter implements IUserManager {
|
|||
continue;
|
||||
}
|
||||
if ($backendUsers !== false) {
|
||||
$userCount += $backendUsers;
|
||||
$userCount = (int)$userCount + $backendUsers;
|
||||
if ($limit > 0) {
|
||||
if ($userCount >= $limit) {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue