From 6b427a4efb6d7e4e40ad96ae32a35f61af301d05 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 25 Jul 2008 08:43:32 +0000 Subject: [PATCH] Fixed white-page in setup. - $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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 571a3f89f..44d05cfe0 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -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") != ""){ -- 2.30.2