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