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