forked from science-ation/science-ation
Properly handle empty judging teams
This commit is contained in:
parent
9f7aea3a57
commit
7ea92bbcb4
@ -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']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user