Only configure LDAP-addressbook(s) if PHP has LDAP support.
authorpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 9 Aug 2000 12:48:50 +0000 (12:48 +0000)
committerpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 9 Aug 2000 12:48:50 +0000 (12:48 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@686 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/addressbook.php

index 21b6f1c679e726bbe1471642ab0927d94c835478..437d98bbe42d47d7e096acbf856dbe0416bd3fc4 100644 (file)
@@ -33,8 +33,8 @@
       if($onlylocal)
        return $abook;
 
-      // Load configured LDAP servers
-      if(is_array($ldap_server)) {
+      // Load configured LDAP servers (if PHP has LDAP support)
+      if(is_array($ldap_server) && function_exists("ldap_connect")) {
         reset($ldap_server);
         while(list($undef,$param) = each($ldap_server)) {
            if(is_array($param)) {