Skip to content
Snippets Groups Projects
Commit 4de10aca authored by hahn's avatar hahn
Browse files

ldap.class: check array of search result

parent c08c0ae1
No related branches found
No related tags found
1 merge request!195534 add docker
......@@ -284,7 +284,7 @@ class imlldap {
$aItems = $this->searchUser($sSearchFilter, $aAttributesToGet);
if(count($aItems)==2){
if(is_array($aItems) && count($aItems)==2){
$this->_w(__FUNCTION__ . ' OK: I got a single result: ' . print_r($aItems[0],1) );
return $aItems[0];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment