Code

Fixed priority
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 22 Nov 2005 08:00:33 +0000 (08:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 22 Nov 2005 08:00:33 +0000 (08:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2003 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupApplication.inc

index 4ff9fa5e262ddc934051dc8bfd718f1c14fef7e5..af56827a189ab05a8ab7c63f42605bd6963c71af 100644 (file)
@@ -494,12 +494,18 @@ class appgroup extends plugin
     }
 
     $this->attrs["gosaMemberApplication"]= array();
+    $lastSEP = false;
     foreach ($this->gosaMemberApplication as $cat){
       foreach($cat as $val){
-      
         $cats[$val['Cat']] ++;
         if(!preg_match("/__SEPARATOR__/i",$val['App'])){
           $this->attrs["gosaMemberApplication"][]= $val['App']."|".$val['Cat']."|".$cats[$val['Cat']];
+          $lastSEP = false;
+        }else{
+          if($lastSEP){
+            $cats[$val['Cat']] --;
+          }
+          $lastSEP = true; 
         }
       }
     }