Skip to content

Commit

Permalink
Merge pull request #39175 from shdehnavi/settings_app_users_controlle…
Browse files Browse the repository at this point in the history
…r_square_bracket_syntax

use square bracket syntax to modify array
  • Loading branch information
ChristophWurst authored Sep 27, 2023
2 parents f934d23 + 8850c66 commit dd3cd29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/settings/lib/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function usersList(): TemplateResponse {

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)) {
Expand Down

0 comments on commit dd3cd29

Please sign in to comment.