Code

Fixed setup error message.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jul 2008 08:47:26 +0000 (08:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jul 2008 08:47:26 +0000 (08:47 +0000)
-$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

index 1aaa8e800c557389bb2888cd22edbfe0a93dc820..ac5e1e47a9a0bcc3b32ffbde8db8bc1c188d473a 100644 (file)
@@ -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);
     }