Update manager.php
This commit is contained in:
parent
14fcd68172
commit
6a3d6d3e4b
|
@ -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…
Reference in New Issue