summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormacjohnny <estebanmarin@gmx.ch>2014-06-19 20:32:37 +0200
committermacjohnny <estebanmarin@gmx.ch>2014-06-19 20:32:37 +0200
commit6a3d6d3e4b2107e4e9612146006237cd8fa5f253 (patch)
tree91e4a61abc809e02fbbf400a2b667701f8e88b68
parent14fcd681723e068a3398b9065a2bad4756e9b5f2 (diff)
downloadnextcloud-server-6a3d6d3e4b2107e4e9612146006237cd8fa5f253.tar.gz
nextcloud-server-6a3d6d3e4b2107e4e9612146006237cd8fa5f253.zip
Update manager.php
-rw-r--r--lib/private/group/manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php
index ae20af7448f..9bb5b39c794 100644
--- a/lib/private/group/manager.php
+++ b/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];
}