From: hickert Date: Fri, 4 Aug 2006 09:04:24 +0000 (+0000) Subject: Fixed problem with empty releases name X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f3eaf829e32f5cce723f086e8e6ac0d4defcf10f;p=gosa.git Fixed problem with empty releases name git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4389 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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; }