From c992127e2e207de88199bac55bfd7551b417c01e Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 1 Aug 2008 07:25:23 +0000 Subject: [PATCH] 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 --- gosa-core/include/functions.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.30.2