summaryrefslogtreecommitdiffstats
path: root/lib/private/user
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-01-08 13:24:28 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-01-08 13:24:28 +0100
commitcb6a3e2617c6549d4a305f3612bef8aa5840306e (patch)
treef6196b180c9a6882cffeac2aa647d461e7db74a0 /lib/private/user
parent677d83d45fed6e799b9d90927f365d47ba08f93b (diff)
downloadnextcloud-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.php6
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;
+ }
}
}
}