Skip to content

Commit dd3cd29

Browse files
Merge pull request #39175 from shdehnavi/settings_app_users_controller_square_bracket_syntax
use square bracket syntax to modify array
2 parents f934d23 + 8850c66 commit dd3cd29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/settings/lib/Controller/UsersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function usersList(): TemplateResponse {
223223

224224
foreach ($groups as $key => $group) {
225225
// $userCount += (int)$group['usercount'];
226-
array_push($groupsNames, $group['name']);
226+
$groupsNames[] = $group['name'];
227227
// we prevent subadmins from looking up themselves
228228
// so we lower the count of the groups he belongs to
229229
if (array_key_exists($group['id'], $userGroups)) {

0 commit comments

Comments
 (0)