Properly handle empty judging teams

This commit is contained in:
james 2006-03-30 17:05:36 +00:00
parent 9f7aea3a57
commit 7ea92bbcb4
2 changed files with 10 additions and 4 deletions

View File

@ -56,9 +56,12 @@
foreach($teams AS $team)
{
foreach($team['members'] AS $member)
if(count($team['members']))
{
$table['data'][]=array($team['num'],$team['name'],$member['captain'],$member['firstname'],$member['lastname']);
foreach($team['members'] AS $member)
{
$table['data'][]=array($team['num'],$team['name'],$member['captain'],$member['firstname'],$member['lastname']);
}
}
}

View File

@ -70,9 +70,12 @@
$awardstr=substr($awardstr,0,-2);
$rep->addText($awardstr);
foreach($team['members'] AS $member)
if(count($team['members']))
{
$table['data'][]=array($member['captain'],$member['firstname'],$member['lastname']);
foreach($team['members'] AS $member)
{
$table['data'][]=array($member['captain'],$member['firstname'],$member['lastname']);
}
}
$rep->addTable($table);