mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Merge pull request #39175 from shdehnavi/settings_app_users_controller_square_bracket_syntax
use square bracket syntax to modify array
This commit is contained in:
commit
dd3cd29224
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue