From cfd6fdf637230b390ed793885e197937ce6d7f64 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 16 Mar 2006 20:15:50 +0000 Subject: [PATCH] Dont bail out on empty judge teams --- admin/reports_judges_teams_projects.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/admin/reports_judges_teams_projects.php b/admin/reports_judges_teams_projects.php index 930cd18..0fa523c 100644 --- a/admin/reports_judges_teams_projects.php +++ b/admin/reports_judges_teams_projects.php @@ -68,14 +68,17 @@ $rep->heading($team['name']." (".$team['num'].")"); $memberlist=""; - foreach($team['members'] AS $member) + if(count($team['members'])) { - $memberlist.=$member['firstname']." ".$member['lastname']; - if($member['captain']=="yes") - $memberlist.="*"; - $memberlist.=", "; + foreach($team['members'] AS $member) + { + $memberlist.=$member['firstname']." ".$member['lastname']; + if($member['captain']=="yes") + $memberlist.="*"; + $memberlist.=", "; + } + $memberlist=substr($memberlist,0,-2); } - $memberlist=substr($memberlist,0,-2); $rep->addText($memberlist); $rep->nextLine();