Use array_merge when reading cached groups members
This commit is contained in:
parent
7dcc47dc94
commit
c5a6c8b70b
|
@ -535,7 +535,7 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($this->cachedGroupsByMember[$uid])) {
|
if(isset($this->cachedGroupsByMember[$uid])) {
|
||||||
$groups[] = $this->cachedGroupsByMember[$uid];
|
$groups = array_merge($groups, $this->cachedGroupsByMember[$uid]);
|
||||||
} else {
|
} else {
|
||||||
$groupsByMember = array_values($this->getGroupsByMember($uid));
|
$groupsByMember = array_values($this->getGroupsByMember($uid));
|
||||||
$groupsByMember = $this->access->ownCloudGroupNames($groupsByMember);
|
$groupsByMember = $this->access->ownCloudGroupNames($groupsByMember);
|
||||||
|
|
Loading…
Reference in New Issue