diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-01-30 13:47:09 +0100 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2025-02-09 21:55:34 +0100 |
commit | 27673a36116eb55e2423aafa2647d6b3790c443f (patch) | |
tree | 8c41cf9139e44db1cef5f233f9f6f62e180ebc4f | |
parent | 8a9c2c9f8f834c0f44d642d8fde00085aec55dbc (diff) | |
download | nextcloud-server-27673a36116eb55e2423aafa2647d6b3790c443f.tar.gz nextcloud-server-27673a36116eb55e2423aafa2647d6b3790c443f.zip |
fix(user_ldap): Remove redundant if check
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | apps/user_ldap/lib/Group_Proxy.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Group_Proxy.php b/apps/user_ldap/lib/Group_Proxy.php index 2c9c6acfdd3..f0cdc7a465d 100644 --- a/apps/user_ldap/lib/Group_Proxy.php +++ b/apps/user_ldap/lib/Group_Proxy.php @@ -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)); |