diff options
-rw-r--r-- | apps/settings/lib/Controller/UsersController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/UsersController.php b/apps/settings/lib/Controller/UsersController.php index 89a850c1980..b7de4bef0c0 100644 --- a/apps/settings/lib/Controller/UsersController.php +++ b/apps/settings/lib/Controller/UsersController.php @@ -220,7 +220,7 @@ class UsersController extends Controller { foreach ($groups as $key => $group) { // $userCount += (int)$group['usercount']; - array_push($groupsNames, $group['name']); + $groupsNames[] = $group['name']; // we prevent subadmins from looking up themselves // so we lower the count of the groups he belongs to if (array_key_exists($group['id'], $userGroups)) { |