Code

Updated functions inc
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Apr 2008 08:19:05 +0000 (08:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Apr 2008 08:19:05 +0000 (08:19 +0000)
-Method get_ou will now check entries from gosa.conf correctly.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10101 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index 5f8c1d0e1eb6602c15c09509581805cfdcd1d9d0..5caf26ea7018b6192af03cdecb4ed4e02c0adbb0 100644 (file)
@@ -1153,8 +1153,8 @@ function get_ou($name)
                 "mimetypeou"    => "ou=mime,");
 
   /* Preset ou... */
-  if (isset($config->current[$name])){
-    $ou= $config->current[$name];
+  if (isset($config->current[strtoupper($name)])){
+    $ou= $config->current[strtoupper($name)];
   } elseif (isset($map[$name])) {
     $ou = $map[$name];
     return($ou);