Fix for when a root_dse query doesnt return any results

This commit is contained in:
Deon George 2009-07-25 20:15:25 +10:00
parent dc3e477778
commit 196aa00218

View File

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