From: hickert Date: Wed, 7 Dec 2005 13:09:55 +0000 (+0000) Subject: Fixed some indexes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af73c6d5eba9b699e1b5498fbc1f3b01bd0b4e44;p=gosa.git Fixed some indexes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2249 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index f6d17c4f9..f11234051 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -78,18 +78,20 @@ class appgroup extends plugin $this->gosaMemberApplication = $tmp2; $cats[""]=""; foreach($cats as $cat ){ - $max = max($prios[$cat]); - $min = 1;//min($prios[$cat]); - $last = false; - for($i = $min ; $i < $max ; $i++){ - if(!isset($prios[$cat][$i])){ - if($last == false){ - $this->gosaMemberApplication[$cat][$i]['App'] = "__SEPARATOR__".$i; - - $last = true; + if((isset($prios[$cat]))&&(count($prios[$cat]))){ + $max = max($prios[$cat]); + $min = 1;//min($prios[$cat]); + $last = false; + for($i = $min ; $i < $max ; $i++){ + if(!isset($prios[$cat][$i])){ + if($last == false){ + $this->gosaMemberApplication[$cat][$i]['App'] = "__SEPARATOR__".$i; + + $last = true; + } + }else{ + $last = false; } - }else{ - $last = false; } } }