Update manager.php

remotes/origin/fix-10825
macjohnny 11 years ago
parent 14fcd68172
commit 6a3d6d3e4b
  1. 4
      lib/private/group/manager.php

@ -182,10 +182,10 @@ class Manager extends PublicEmitter {
foreach ($this->backends as $backend) {
$groupIds = $backend->getUserGroups($uid);
foreach ($groupIds as $groupId) {
$groups[] = $this->get($groupId);
$groups[$groupId] = $this->get($groupId);
}
}
$this->cachedUserGroups[$uid] = $groups;
$this->cachedUserGroups[$uid] = array_values($groups);
return $this->cachedUserGroups[$uid];
}

Loading…
Cancel
Save