summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/ajax/grouplist.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/ajax/grouplist.php b/settings/ajax/grouplist.php
index 62c345a9ff0..79143ee89ca 100644
--- a/settings/ajax/grouplist.php
+++ b/settings/ajax/grouplist.php
@@ -38,10 +38,10 @@ $groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), true, $groupManager);
$groupsInfo->setSorting($groupsInfo::SORT_USERCOUNT);
list($adminGroup, $groups) = $groupsInfo->get($pattern);
-$accessiblegroups = $groupManager->search($pattern);
+$accessibleGroups = $groupManager->search($pattern);
if(!$isAdmin) {
$subadminGroups = OC_SubAdmin::getSubAdminsGroups(OC_User::getUser());
- $accessiblegroups = array_intersect($groups, $subadminGroups);
+ $accessibleGroups = array_intersect($groups, $subadminGroups);
}
OC_JSON::success(