forked from science-ation/science-ation
Skip round2 judge scheduling if no round2 timeslots are defined.
This commit is contained in:
parent
4c79d7482d
commit
147655171c
@ -789,6 +789,11 @@ for($y=0; $y<count($ids); $y++) {
|
|||||||
* - No annealing required
|
* - No annealing required
|
||||||
*
|
*
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
if($round_divisional2 == NULL) {
|
||||||
|
echo "No Round 2 Divisional defined, skipping.\n";
|
||||||
|
} else {
|
||||||
|
|
||||||
echo "Finding round2 carry-over judges:\n";
|
echo "Finding round2 carry-over judges:\n";
|
||||||
|
|
||||||
foreach($jdiv as $jdiv_id=>$jd) {
|
foreach($jdiv as $jdiv_id=>$jd) {
|
||||||
@ -839,6 +844,7 @@ foreach($jdiv as $jdiv_id=>$jd) {
|
|||||||
foreach($jd['award_ids'] as $aid) {
|
foreach($jd['award_ids'] as $aid) {
|
||||||
mysql_query("INSERT INTO judges_teams_awards_link (award_awards_id,judges_teams_id,year) VALUES ('$aid','$team_id','{$config['FAIRYEAR']}')");
|
mysql_query("INSERT INTO judges_teams_awards_link (award_awards_id,judges_teams_id,year) VALUES ('$aid','$team_id','{$config['FAIRYEAR']}')");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user