This shoul dfix the case where there are no projects in a judging division

This commit is contained in:
dave 2006-08-09 02:01:43 +00:00
parent be711441ea
commit e1c39dd0a3

View File

@ -270,7 +270,6 @@ for($k=0; $k<count($keys); $k++) {
TRACE("Loading Scheduler Configuration Data...\n");
$data = judges_scheduler_load_config();
TRACE("Computing required judging teams...\n");
TRACE(" Each judging team may judge {$data['max_projects_per_team']} projects\n");
TRACE(" Each project must be judged {$data['times_judged']} times\n");
@ -657,6 +656,8 @@ for($k=0; $k<count($keys); $k++) {
$pids = array_keys($jdiv[$jdiv_id]['projects']);
$n_projects = count($n_pids);
if($n_projects == 0) continue;
unset($project_rlookup);
$project_rlookup = array();
@ -730,7 +731,7 @@ for($k=0; $k<count($keys); $k++) {
TRACE("All Done.\n");
echo "</pre>";
echo happy("Scheduler complete successfully");
echo happy("Scheduler completed successfully");
send_footer();
?>