Code

Added workaround for empty ou values
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jul 2008 13:10:57 +0000 (13:10 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jul 2008 13:10:57 +0000 (13:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12054 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index c82008207c6566bc392459b96e5880965dca8cc7..cf8ed7cc6d2bb00b240a5d2d03e52bf093f03cf8 100644 (file)
@@ -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];