Code

Added override for non defined $config objects during the setup. Closes #521
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Aug 2008 07:25:23 +0000 (07:25 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 1 Aug 2008 07:25:23 +0000 (07:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12087 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index 5340d6fd8abe3a44f898d41dd3ad8ca163f883c9..2bdae08ef0e02036a43ad3427df3a2cae5f25351 100644 (file)
@@ -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);
 }