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
parent
commit
dd3cd29224
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/settings/lib/Controller/UsersController.php

2
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)) {

Loading…
Cancel
Save