mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
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
|
* @param string $dn
|
||||||
*
|
*
|
||||||
* @return array|null
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getGroups($dn)
|
public function getGroups($dn)
|
||||||
{
|
{
|
||||||
if (empty($this->groupOptions) || ! isset($this->groupOptions['group_base_dn'])) {
|
if (empty($this->groupOptions) || ! isset($this->groupOptions['group_base_dn'])) {
|
||||||
return null;
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$q = $this->conn->select()
|
$q = $this->conn->select()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user