From: hickert Date: Fri, 15 Feb 2008 13:59:50 +0000 (+0000) Subject: Updated group / apps X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9c896a9d51e12292f034a91494d76e29b687d51b;p=gosa.git Updated group / apps Skip adding objects to not existing programm tree git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8932 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc index 43232f7e8..1185c5a84 100644 --- a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc +++ b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc @@ -184,18 +184,25 @@ class appgroup extends plugin $sub_dn = preg_replace("/,".normalizePreg($this->dn)."$/","",$attrs['dn']); $sub_dn_array = split("\,",$sub_dn); - + $found = true; for($i = (count($sub_dn_array)-1) ; $i >= 0 ; $i--){ $name = preg_replace("/^[^=]*+=/","",$sub_dn_array[$i]); + if($i > 0){ + $found =FALSE; foreach($cur as $key => $entry){ if($entry['NAME'] == $name){ $cur = &$cur[$key]['ENTRIES']; $parent_id = $entry['UNIQID']; + $found =true; + break; } } }else{ - + + if(!$found){ + break; + } $priority = 1; if(isset($attrs['gosaApplicationPriority'])){ $priority= $attrs['gosaApplicationPriority'][0];