Make sure that we work only with arrays when handling LDAP groups

This commit is contained in:
Matthias Jentsch 2014-10-09 10:14:42 +02:00 committed by Johannes Meyer
parent e3164a275f
commit dd21b7b5d1
1 changed files with 2 additions and 2 deletions

View File

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