From af73c6d5eba9b699e1b5498fbc1f3b01bd0b4e44 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 7 Dec 2005 13:09:55 +0000 Subject: [PATCH] Fixed some indexes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2249 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/groups/class_groupApplication.inc | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) 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; } } } -- 2.30.2