Browse Source
Merge pull request #39175 from shdehnavi/settings_app_users_controller_square_bracket_syntax
use square bracket syntax to modify array
pull/40671/head
Christoph Wurst
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
apps/settings/lib/Controller/UsersController.php
|
|
|
@ -223,7 +223,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)) { |
|
|
|
|