]> git.sur5r.net Git - contagged/commitdiff
ignore missing personal addressbook while browsing
authorAndreas Gohr <gohr@cosmocode.de>
Thu, 6 Dec 2007 15:08:20 +0000 (16:08 +0100)
committerAndreas Gohr <gohr@cosmocode.de>
Thu, 6 Dec 2007 15:08:20 +0000 (16:08 +0100)
darcs-hash:20071206150820-6e07b-4c565086618eaed75f9cf05b51f78245729d8e50.gz

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);
   }