소스 검색

* Removed a potential warning and potential config problem (like the plugins)

Tyler Akins 24 년 전
부모
커밋
5d06ba1f88
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      functions/addressbook.php

+ 2 - 1
functions/addressbook.php

@@ -56,7 +56,8 @@
 	return $abook;
 
       // Load configured LDAP servers (if PHP has LDAP support)
-      if(is_array($ldap_server) && function_exists('ldap_connect')) {
+      if(isset($ldap_server) && is_array($ldap_server) && 
+          function_exists('ldap_connect')) {
 	 reset($ldap_server);
 	 while(list($undef,$param) = each($ldap_server)) {
 	    if(is_array($param)) {