Code

Fixed removement of categories
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Oct 2007 09:38:09 +0000 (09:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Oct 2007 09:38:09 +0000 (09:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7531 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupApplication.inc

index f515337fcdfc47168947e39e4e91bcddc2a91def..70512fac22c2904a17bd094e4e895a0b7478da61 100644 (file)
@@ -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){