aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorHamid Dehnavi <hamid.dev.pro@gmail.com>2023-07-05 21:36:45 +0330
committerHamid Dehnavi <hamid.dev.pro@gmail.com>2023-07-05 21:36:45 +0330
commit8850c66ab8a20185382da20f2316c969334645c3 (patch)
treeeb77f1837cdb167d43b37a147bef52f185538380 /apps/settings
parent6862ff28002c8c282bcca5c198619c03f5cb4e0b (diff)
downloadnextcloud-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.php2
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)) {