From 59da6152dd6ccd0bb6612c76fd386409b4989fbb Mon Sep 17 00:00:00 2001 From: james Date: Fri, 15 Jan 2010 15:20:11 +0000 Subject: [PATCH] Properly detect complete status if special awards is turned off --- judge.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/judge.inc.php b/judge.inc.php index 47cdb3d..6809b6b 100644 --- a/judge.inc.php +++ b/judge.inc.php @@ -74,6 +74,9 @@ function judge_status_special_awards(&$u) { global $config; + if($config['judges_specialaward_enable'] == 'no' && $u['special_award_only']=='no') + return 'complete'; + /* Complete if: * - judge has selected (none) "no special award preferences" * - judge has selected between min and max preferences @@ -128,7 +131,6 @@ function judge_status_update(&$u) user_save($u); return ($u['judge_complete'] == 'yes') ? 'complete' : 'incomplete'; - }