Skip to content

Commit

Permalink
fix(user_ldap): Remove redundant if check
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Feb 10, 2025
1 parent dd99760 commit 8cec78e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/user_ldap/lib/Group_Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ public function getUserGroups($uid) {
$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));
Expand Down

0 comments on commit 8cec78e

Please sign in to comment.