diff --git a/admin/judges_sa.php b/admin/judges_sa.php index 0c1c91d..04aba1b 100644 --- a/admin/judges_sa.php +++ b/admin/judges_sa.php @@ -271,6 +271,9 @@ $jdiv = array(); TRACE("Loading Judging Division Configuration and Projects...\n"); $q=mysql_query("SELECT * FROM judges_jdiv"); while($r=mysql_fetch_object($q)) { + /* Ignore jdiv 0 (all unassigned div/cats) */ + if($r->jdiv_id == 0) continue; + $jdiv[$r->jdiv_id]['config'][] = array('div' => $r->projectdivisions_id, 'cat' => $r->projectcategories_id, 'lang' => $r->lang); @@ -455,7 +458,7 @@ while($r=mysql_fetch_object($q)) while($r2=mysql_fetch_object($q2)) $divprefs[$r2->projectdivisions_id]=$r2->val-3; - $langperfs = array(); + $langprefs = array(); $q3=mysql_query("SELECT * from judges_languages WHERE judges_id='$r->id'"); while($r3=mysql_fetch_object($q3)) $langprefs[]=$r3->languages_lang; diff --git a/admin/judges_schedulerconfig_check.inc.php b/admin/judges_schedulerconfig_check.inc.php index ad6fa17..68e3457 100644 --- a/admin/judges_schedulerconfig_check.inc.php +++ b/admin/judges_schedulerconfig_check.inc.php @@ -91,6 +91,9 @@ function judges_scheduler_check_judges() $jdiv = array(); $q=mysql_query("SELECT * FROM judges_jdiv ORDER BY jdiv_id"); while($r=mysql_fetch_object($q)) { + /* Ignore any div/cat with jdiv 0 */ + if($r->jdiv_id == 0) continue; + $d = $r->projectdivisions_id; $c = $r->projectcategories_id; $l = $r->lang;