]> git.sur5r.net Git - contagged/blobdiff - inc/functions.php
Make it possible to disable private contacts
[contagged] / inc / functions.php
index eb1619ca1cfef566bece5a85e0a93c26c477587a..a5e0631cf46d7dad051abc732773402e9e5364af 100644 (file)
@@ -393,7 +393,7 @@ function ldap_queryabooks($filter,$types){
   ldap_free_result($sr);
 
   // private addressbook
-  if(!empty($_SESSION['ldapab']['binddn'])){
+  if(!empty($_SESSION['ldapab']['binddn']) && $conf['privatebook']){
     $sr      = @ldap_list($LDAP_CON,$conf['privatebook'].
                           ','.$_SESSION['ldapab']['binddn'],
                           $filter,$types);