From 2f732812b0b833554a48bafec76b2667691c1f5d Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 25 Jul 2008 08:47:26 +0000 Subject: [PATCH] Fixed setup error message. -$config wasn't initialized yet git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12040 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ldap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index 1aaa8e800..ac5e1e47a 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -60,7 +60,7 @@ class LDAP{ $this->hostname=$hostname; /* Check if MAX_LDAP_QUERY_TIME is defined */ - if($config->get_cfg_value("max_ldap_query_time") != ""){ + if(is_object($config) && $config->get_cfg_value("max_ldap_query_time") != ""){ $str = $config->get_cfg_value("max_ldap_query_time"); $this->max_ldap_query_time = (float)($str); } -- 2.30.2