forked from science-ation/science-ation
Dont let the scheduler run if we have 0 judges available - timmins was in an endless loop since last nite
This commit is contained in:
parent
e6b24ff0ab
commit
c729e0f8da
@ -519,6 +519,12 @@ foreach($judges as &$j) {
|
||||
TRACE("Loaded ".count($judges)." judges\n");
|
||||
$jteam[0]['max_judges'] = count($judges);
|
||||
|
||||
if(count($judges)==0) {
|
||||
echo "No judges available. Aborting!\n";
|
||||
set_status("Error - no judges available...");
|
||||
set_percent(0);
|
||||
exit;
|
||||
}
|
||||
|
||||
/* Load the numbers for any user-defined judge teams that already exist,
|
||||
* these numbers will be off-limits for auto-assigning numbers */
|
||||
|
Loading…
Reference in New Issue
Block a user