浏览代码

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