Skip to content

Commit

Permalink
Use array_merge when reading cached groups members
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry committed Jun 8, 2016
1 parent 087f005 commit b37f2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/user_ldap/group_ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ public function getUserGroups($uid) {
}

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);
Expand Down

0 comments on commit b37f2e2

Please sign in to comment.