From e9e25f709f03449fc661594e2b75f5e03cc3433a Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Oct 2007 09:38:09 +0000 Subject: [PATCH] Fixed removement of categories git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7531 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupApplication.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index f515337fc..70512fac2 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -490,14 +490,14 @@ class appgroup extends plugin } unset($this->gosaMemberApplication[$cat]); unset($this->Categories[$cat]); - foreach($this->Categories as $key => $name){ - if(preg_match("/^".$cat."\/.*/",$key)){ - foreach($this->gosaMemberApplication[$key] as $app){ - $free_apps[] = $app['App']; - } - unset($this->gosaMemberApplication[$key]); - unset($this->Categories[$key]); + } + foreach($this->Categories as $key => $name){ + if(preg_match("/^".normalizePreg($cat)."\/.*/",$key)){ + foreach($this->gosaMemberApplication[$key] as $app){ + $free_apps[] = $app['App']; } + unset($this->gosaMemberApplication[$key]); + unset($this->Categories[$key]); } } foreach($free_apps as $app){ -- 2.30.2