From: hickert Date: Fri, 25 Jul 2008 08:47:26 +0000 (+0000) Subject: Fixed setup error message. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f732812b0b833554a48bafec76b2667691c1f5d;p=gosa.git 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 --- 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); }