Explorar o código

Only configure LDAP-addressbook(s) if PHP has LDAP support.

pallo %!s(int64=25) %!d(string=hai) anos
pai
achega
15e44d4a62
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      functions/addressbook.php

+ 2 - 2
functions/addressbook.php

@@ -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)) {