if backends have the same class name, sum their users up instead of overwriting
This commit is contained in:
parent
677d83d45f
commit
cb6a3e2617
|
@ -282,7 +282,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 New Issue