From 291649e77ede9eb3d0f1cb95c0472809ff7a9806 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 5 Jan 2006 09:21:20 +0000 Subject: [PATCH] Fixed stupid name parsing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2411 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupApplication.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index bd5616b51..cffa3ba86 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -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']); -- 2.30.2