Code

Fixed stupid name parsing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Jan 2006 09:21:20 +0000 (09:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Jan 2006 09:21:20 +0000 (09:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2411 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupApplication.inc

index bd5616b517a1fac67a905a398df502228aa8b43f..cffa3ba86785e6a0f62c66721d42f78166daba8e 100644 (file)
@@ -378,9 +378,13 @@ class appgroup extends plugin
           }
         }
       }
-      
-      if(preg_match("/EdiApp_/",$name)){
+      $only_once = true; 
+      if((preg_match("/EdiApp_/",$name))&&($only_once)){
+
+        $only_once = false;
         $appname = $value;
+        $appname = preg_replace("/EdiApp_/","",$name);  
+        $appname = preg_replace("/_.*$/","",$appname);
         /* We've got the appname, get parameters from ldap */
         $ldap= $this->config->get_ldap_link();
         $ldap->cd($this->config->current['BASE']);