From: cajus Date: Fri, 1 Aug 2008 07:25:23 +0000 (+0000) Subject: Added override for non defined $config objects during the setup. Closes #521 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c992127e2e207de88199bac55bfd7551b417c01e;p=gosa.git Added override for non defined $config objects during the setup. Closes #521 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12087 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 5340d6fd8..2bdae08ef 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -1250,7 +1250,10 @@ function strict_uid_mode() { global $config; - return ($config->get_cfg_value("strict") == "true"); + if (isset($config)){ + return ($config->get_cfg_value("strict") == "true"); + } + return (TRUE); }