Fix for when a root_dse query doesnt return any results
This commit is contained in:
parent
dc3e477778
commit
196aa00218
@ -1044,7 +1044,7 @@ class ldap extends DS {
|
||||
$query['baseok'] = true;
|
||||
$results = $this->query($query,$method);
|
||||
|
||||
if (is_array($results))
|
||||
if (is_array($results) && count($results) == 1)
|
||||
return array_change_key_case(array_pop($results));
|
||||
else
|
||||
return array();
|
||||
|
Loading…
Reference in New Issue
Block a user