From 1a3036011047c45a6959710e96241250c2afbec5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 22 Dec 2009 16:02:54 +0000 Subject: [PATCH] Fix: view LDAP attributes of entry --- htdocs/contact/ldap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {