浏览代码

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.

tokul 20 年之前
父节点
当前提交
bd6d926392
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/addressbook.php

+ 1 - 1
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)) {