From: tokul Date: Sun, 27 Mar 2005 09:09:06 +0000 (+0000) Subject: missing extension problems are handled inside backend class. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=95501c13bfa060b26171ee6c80d570897b9f22fa;p=squirrelmail.git missing extension problems are handled inside backend class. 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 --- diff --git a/functions/addressbook.php b/functions/addressbook.php index 54e16d01..90de7dab 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -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)) {