Skip to content

Commit

Permalink
Make sure that we work only with arrays when handling LDAP groups
Browse files Browse the repository at this point in the history
  • Loading branch information
majentsch authored and Johannes Meyer committed Oct 9, 2014
1 parent e3164a2 commit dd21b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Icinga/Authentication/Backend/LdapUserBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ public function assertAuthenticationPossible()
*
* @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()
Expand Down

0 comments on commit dd21b7b

Please sign in to comment.