diff --git a/htdocs/contact/ldap.php b/htdocs/contact/ldap.php index 2df254e468d..44f086c5b0a 100644 --- a/htdocs/contact/ldap.php +++ b/htdocs/contact/ldap.php @@ -175,10 +175,10 @@ if ($result > 0) $search = "(".$contact->_load_ldap_dn($info,2).")"; $records=$ldap->getAttribute($dn,$search); - //print_r($records); + //var_dump($records); // Affichage arbre - if (sizeof($records) && (! isset($records['count']) || $records['count'] > 0)) + if (sizeof($records) && $records != false && (! isset($records['count']) || $records['count'] > 0)) { if (! is_array($records)) {