]> git.sur5r.net Git - contagged/blobdiff - inc/functions.php
ignore missing personal addressbook while browsing
[contagged] / inc / functions.php
index 33300c64462a0c0f2149147275ea229485ee2a97..eb1619ca1cfef566bece5a85e0a93c26c477587a 100644 (file)
@@ -397,7 +397,7 @@ function ldap_queryabooks($filter,$types){
     $sr      = @ldap_list($LDAP_CON,$conf['privatebook'].
                           ','.$_SESSION['ldapab']['binddn'],
                           $filter,$types);
-    tpl_ldaperror();
+    if(ldap_errno($LDAP_CON) != 32) tpl_ldaperror(); // ignore missing address book
     $result2 = ldap_get_binentries($LDAP_CON, $sr);
   }