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:
james 2010-01-15 14:53:24 +00:00
parent e6b24ff0ab
commit c729e0f8da

View File

@ -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 */