diff options
author | Hamid Dehnavi <hamid.dev.pro@gmail.com> | 2023-07-05 21:36:45 +0330 |
---|---|---|
committer | Hamid Dehnavi <hamid.dev.pro@gmail.com> | 2023-07-05 21:36:45 +0330 |
commit | 8850c66ab8a20185382da20f2316c969334645c3 (patch) | |
tree | eb77f1837cdb167d43b37a147bef52f185538380 /apps/settings | |
parent | 6862ff28002c8c282bcca5c198619c03f5cb4e0b (diff) | |
download | nextcloud-server-8850c66ab8a20185382da20f2316c969334645c3.tar.gz nextcloud-server-8850c66ab8a20185382da20f2316c969334645c3.zip |
use square bracket syntax to modify array
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/Controller/UsersController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/UsersController.php b/apps/settings/lib/Controller/UsersController.php index 89a850c1980..b7de4bef0c0 100644 --- a/apps/settings/lib/Controller/UsersController.php +++ b/apps/settings/lib/Controller/UsersController.php @@ -220,7 +220,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)) { |