summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2fd7b8e)
raw | patch | inline | side by side (parent: 2fd7b8e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 25 Jul 2008 08:43:32 +0000 (08:43 +0000) | ||
committer | hickert <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12039 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_gosaSupportDaemon.inc | patch | blob | history |
diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc
index 571a3f89f72b54401df4cfc24f742f21c8d9db57..44d05cfe0d0e0e9628474e76c7c2b1a4cf4614d0 100644 (file)
#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") != ""){