mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 11:41:20 -04:00
fix(user_ldap): Remove redundant if check
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
f9bb4a7d23
commit
39a1cda8b9
1 changed files with 1 additions and 3 deletions
|
|
@ -159,9 +159,7 @@ class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP, IGet
|
|||
$groups = [];
|
||||
foreach ($this->backends as $backend) {
|
||||
$backendGroups = $backend->getUserGroups($uid);
|
||||
if (is_array($backendGroups)) {
|
||||
$groups = array_merge($groups, $backendGroups);
|
||||
}
|
||||
$groups = array_merge($groups, $backendGroups);
|
||||
}
|
||||
|
||||
return array_values(array_unique($groups));
|
||||
|
|
|
|||
Loading…
Reference in a new issue