Update manager.php

This commit is contained in:
macjohnny 2014-06-19 20:32:37 +02:00
parent 14fcd68172
commit 6a3d6d3e4b
1 changed files with 2 additions and 2 deletions

View File

@ -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];
}