From: cajus Date: Fri, 25 Jul 2008 13:10:57 +0000 (+0000) Subject: Added workaround for empty ou values X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af902dffaac76a66b0a8e51206d305a8f2dcd19c;p=gosa.git Added workaround for empty ou values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12054 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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];