Rename $accessiblegroups to $accessibleGroups

This commit is contained in:
Lukas Reschke 2014-04-20 00:41:10 +02:00 committed by Arthur Schiwon
parent 8141b9181c
commit f2fed6de4e
1 changed files with 2 additions and 2 deletions

View File

@ -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(