forked from science-ation/science-ation
This shoul dfix the case where there are no projects in a judging division
This commit is contained in:
parent
be711441ea
commit
e1c39dd0a3
@ -270,7 +270,6 @@ for($k=0; $k<count($keys); $k++) {
|
|||||||
TRACE("Loading Scheduler Configuration Data...\n");
|
TRACE("Loading Scheduler Configuration Data...\n");
|
||||||
$data = judges_scheduler_load_config();
|
$data = judges_scheduler_load_config();
|
||||||
|
|
||||||
|
|
||||||
TRACE("Computing required judging teams...\n");
|
TRACE("Computing required judging teams...\n");
|
||||||
TRACE(" Each judging team may judge {$data['max_projects_per_team']} projects\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");
|
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']);
|
$pids = array_keys($jdiv[$jdiv_id]['projects']);
|
||||||
$n_projects = count($n_pids);
|
$n_projects = count($n_pids);
|
||||||
|
|
||||||
|
if($n_projects == 0) continue;
|
||||||
|
|
||||||
unset($project_rlookup);
|
unset($project_rlookup);
|
||||||
$project_rlookup = array();
|
$project_rlookup = array();
|
||||||
|
|
||||||
@ -730,7 +731,7 @@ for($k=0; $k<count($keys); $k++) {
|
|||||||
TRACE("All Done.\n");
|
TRACE("All Done.\n");
|
||||||
echo "</pre>";
|
echo "</pre>";
|
||||||
|
|
||||||
echo happy("Scheduler complete successfully");
|
echo happy("Scheduler completed successfully");
|
||||||
|
|
||||||
send_footer();
|
send_footer();
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user