missing extension problems are handled inside backend class.
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 27 Mar 2005 09:09:06 +0000 (09:09 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 27 Mar 2005 09:09:06 +0000 (09:09 +0000)
This makes sure that administrator sees some errors, when he/she adds
ldap address book to php without ldap support.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9142 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/addressbook.php

index 54e16d0..90de7da 100644 (file)
@@ -139,7 +139,7 @@ function addressbook_init($showerr = true, $onlylocal = false) {
 
     if (! $onlylocal) {
         /* Load configured LDAP servers (if PHP has LDAP support) */
-        if (isset($ldap_server) && is_array($ldap_server) && function_exists('ldap_connect')) {
+        if (isset($ldap_server) && is_array($ldap_server)) {
             reset($ldap_server);
             while (list($undef,$param) = each($ldap_server)) {
                 if (is_array($param)) {