From dd21b7b5d1f123e01fbb983d764315bde6032d20 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Thu, 9 Oct 2014 10:14:42 +0200 Subject: [PATCH] Make sure that we work only with arrays when handling LDAP groups --- library/Icinga/Authentication/Backend/LdapUserBackend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Authentication/Backend/LdapUserBackend.php b/library/Icinga/Authentication/Backend/LdapUserBackend.php index 7c60a4a41..9f76b552b 100644 --- a/library/Icinga/Authentication/Backend/LdapUserBackend.php +++ b/library/Icinga/Authentication/Backend/LdapUserBackend.php @@ -96,12 +96,12 @@ class LdapUserBackend extends UserBackend * * @param string $dn * - * @return array|null + * @return array */ public function getGroups($dn) { if (empty($this->groupOptions) || ! isset($this->groupOptions['group_base_dn'])) { - return null; + return array(); } $q = $this->conn->select()