Use array_merge when reading cached groups members

This commit is contained in:
Vincent Petry 2016-06-08 11:22:01 +02:00
parent 087f005936
commit b37f2e230b
No known key found for this signature in database
GPG Key ID: AF8F9EFC56562186
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,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);