mirror of
https://github.com/nextcloud/server.git
synced 2026-02-14 00:04:57 -05:00
fix(user_ldap): Remove redundant if check
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
1098ef3b69
commit
e094602311
1 changed files with 1 additions and 3 deletions
|
|
@ -131,9 +131,7 @@ class Group_Proxy extends Proxy implements GroupInterface, IGroupLDAP, IGetDispl
|
|||
$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