fix subadmin user count for empty groups

This commit is contained in:
Morris Jobke 2015-11-04 09:39:51 +01:00
parent 781bca2437
commit 18f0bafd88
1 changed files with 1 additions and 0 deletions

View File

@ -568,6 +568,7 @@ class UsersController extends Controller {
} else { } else {
$groups = $this->groupManager->getSubAdmin()->getSubAdminsGroups($this->userSession->getUser()); $groups = $this->groupManager->getSubAdmin()->getSubAdminsGroups($this->userSession->getUser());
$uniqueUsers = [];
foreach ($groups as $group) { foreach ($groups as $group) {
foreach($group->getUsers() as $uid => $displayName) { foreach($group->getUsers() as $uid => $displayName) {
$uniqueUsers[$uid] = true; $uniqueUsers[$uid] = true;