diff options
-rw-r--r-- | settings/controller/userscontroller.php | 1 |
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; |