From f3eaf829e32f5cce723f086e8e6ac0d4defcf10f Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 4 Aug 2006 09:04:24 +0000 Subject: [PATCH] Fixed problem with empty releases name git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4389 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/applications/tabs_application.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/admin/applications/tabs_application.inc b/plugins/admin/applications/tabs_application.inc index 203cd69bf..859218e04 100644 --- a/plugins/admin/applications/tabs_application.inc +++ b/plugins/admin/applications/tabs_application.inc @@ -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; } -- 2.30.2