mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 19:49:38 -04:00
if backends have the same class name, sum their users up instead of overwriting
This commit is contained in:
parent
1636c6dbd8
commit
cf8fc2294e
1 changed files with 5 additions and 1 deletions
|
|
@ -273,7 +273,11 @@ class Manager extends PublicEmitter {
|
|||
if ($backend->implementsActions(\OC_USER_BACKEND_COUNT_USERS)) {
|
||||
$backendusers = $backend->countUsers();
|
||||
if($backendusers !== false) {
|
||||
$userCountStatistics[get_class($backend)] = $backendusers;
|
||||
if(isset($userCountStatistics[get_class($backend)])) {
|
||||
$userCountStatistics[get_class($backend)] += $backendusers;
|
||||
} else {
|
||||
$userCountStatistics[get_class($backend)] = $backendusers;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue