Fix: view LDAP attributes of entry

This commit is contained in:
Regis Houssin 2009-12-22 16:02:54 +00:00
parent 6e08369c05
commit 1a30360110

View File

@ -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))
{