From: hickert Date: Thu, 5 Jan 2006 09:21:20 +0000 (+0000) Subject: Fixed stupid name parsing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=291649e77ede9eb3d0f1cb95c0472809ff7a9806;p=gosa.git Fixed stupid name parsing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2411 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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']);