From c639892f3b1fdfdbbe8b634ba31eea0668c214b0 Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 5 Feb 2008 01:07:37 +0000 Subject: [PATCH] - Properly disable divisional checks for special award only judges --- register_judges.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/register_judges.inc.php b/register_judges.inc.php index b4a623b0..5b1dec4b 100644 --- a/register_judges.inc.php +++ b/register_judges.inc.php @@ -69,7 +69,12 @@ function expertiseStatus() /* If the judging special awards are active, and the judge has * selected "I am a special awards judge", then disable this */ if($config['judges_specialaward_only_enable'] == 'yes') { - return "complete"; + $q = mysql_query("SELECT typepref FROM judges WHERE + id='{$_SESSION['judges_id']}'"); + if(mysql_num_rows($q) != 1) return "incomplete"; + $r = mysql_fetch_object($q); + if($r->typepref == 'speconly') + return 'complete'; } //and they need to rank all of the age categories