diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-01-08 13:24:28 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-01-08 13:24:28 +0100 |
commit | cb6a3e2617c6549d4a305f3612bef8aa5840306e (patch) | |
tree | f6196b180c9a6882cffeac2aa647d461e7db74a0 /lib/private/user | |
parent | 677d83d45fed6e799b9d90927f365d47ba08f93b (diff) | |
download | nextcloud-server-cb6a3e2617c6549d4a305f3612bef8aa5840306e.tar.gz nextcloud-server-cb6a3e2617c6549d4a305f3612bef8aa5840306e.zip |
if backends have the same class name, sum their users up instead of overwriting
Diffstat (limited to 'lib/private/user')
-rw-r--r-- | lib/private/user/manager.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/user/manager.php b/lib/private/user/manager.php index 101b388f1e0..90970ef9963 100644 --- a/lib/private/user/manager.php +++ b/lib/private/user/manager.php @@ -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; + } } } } |