Make sure that we work only with arrays when handling LDAP groups
This commit is contained in:
parent
e3164a275f
commit
dd21b7b5d1
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue