fix(user_ldap): Remove redundant if check

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2025-01-30 13:47:09 +01:00
parent 1098ef3b69
commit e094602311
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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));