Code

Fixed white-page in setup.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jul 2008 08:43:32 +0000 (08:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jul 2008 08:43:32 +0000 (08:43 +0000)
- $config wasn't available during setup. include/class_gosaSupportDaemon.inc

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12039 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index 571a3f89f72b54401df4cfc24f742f21c8d9db57..44d05cfe0d0e0e9628474e76c7c2b1a4cf4614d0 100644 (file)
@@ -46,6 +46,11 @@ class gosaSupportDaemon
     #FIXME: bad idea about referencing global variables from within classes
     global $config;
 
+    /* This should only be the case if we call this from setup.
+        __autoload() 
+     */
+    if(!is_object($config)) { return; }
+
     # load from config, store statically
     if ($config->get_cfg_value("gosa_si") != ""){