aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-11-04 09:39:51 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-11-04 09:39:51 +0100
commit18f0bafd88cd8f3baac9dae893b0c3deaaea7e15 (patch)
treeb77287ea3ae024c0641636c04200c41b0091afd7 /settings
parent781bca2437628d2f932abd60c5dcec0ece4504e3 (diff)
downloadnextcloud-server-18f0bafd88cd8f3baac9dae893b0c3deaaea7e15.tar.gz
nextcloud-server-18f0bafd88cd8f3baac9dae893b0c3deaaea7e15.zip
fix subadmin user count for empty groups
Diffstat (limited to 'settings')
-rw-r--r--settings/controller/userscontroller.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/controller/userscontroller.php b/settings/controller/userscontroller.php
index fed9e268a7c..82483a76245 100644
--- a/settings/controller/userscontroller.php
+++ b/settings/controller/userscontroller.php
@@ -568,6 +568,7 @@ class UsersController extends Controller {
} else {
$groups = $this->groupManager->getSubAdmin()->getSubAdminsGroups($this->userSession->getUser());
+ $uniqueUsers = [];
foreach ($groups as $group) {
foreach($group->getUsers() as $uid => $displayName) {
$uniqueUsers[$uid] = true;