Code

Fixed problem with empty releases name
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Aug 2006 09:04:24 +0000 (09:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Aug 2006 09:04:24 +0000 (09:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4389 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/tabs_application.inc

index 203cd69bf9fa4369def2fd533d1772365148948d..859218e040e4fae135af767942d4b9b5312597da 100644 (file)
@@ -24,12 +24,8 @@ class apptabs extends tabs
     /* Check for new 'dn', in order to propagate the
        'dn' to all plugins */
     $tmp = search_config($this->config->data,"faiManagement","CLASS");
-    if((!empty($tmp)) && (isset($_SESSION['appfilter']['release']))){
-      if(!$baseobject->isReleaseApplikation){
-        $new_dn= "cn=".$baseobject->cn.",ou=apps,".$baseobject->base;
-      }else{
-        $new_dn ="cn=".$baseobject->cn.",".$_SESSION['appfilter']['release'];
-      }
+    if((!empty($tmp)) && (isset($_SESSION['appfilter']['release'])) && ($baseobject->isReleaseApplikation) && $_SESSION['appfilter']['release'] != "main"){
+      $new_dn ="cn=".$baseobject->cn.",".$_SESSION['appfilter']['release'];
     }else{
       $new_dn= "cn=".$baseobject->cn.",ou=apps,".$baseobject->base;
     }