diff --git a/public_html/deployment/classes/ldap.class.php b/public_html/deployment/classes/ldap.class.php index 49297e3581e745122337762338b0dea3f1ae486a..0a1a757635759ccde8e3361a616a2b75b2b699df 100644 --- a/public_html/deployment/classes/ldap.class.php +++ b/public_html/deployment/classes/ldap.class.php @@ -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]; }