From af902dffaac76a66b0a8e51206d305a8f2dcd19c Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 25 Jul 2008 13:10:57 +0000 Subject: [PATCH] Added workaround for empty ou values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12054 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index c82008207..cf8ed7cc6 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -1150,6 +1150,8 @@ function get_ou($name) { global $config; + $name= strtolower($name); + $map = array( "ogroupou" => "ou=groups,", "applicationou" => "ou=apps,", @@ -1181,7 +1183,7 @@ function get_ou($name) "mimetypeou" => "ou=mime,"); /* Preset ou... */ - if ($config->get_cfg_value($name) != ""){ + if ($config->get_cfg_value($name, "_not_set_") != "_not_set_"){ $ou= $config->get_cfg_value($name); } elseif (isset($map[$name])) { $ou = $map[$name]; -- 2.30.2