Browse Source

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 năm trước cách đây
mục cha
commit
bd6d926392
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)) {