Properly detect complete status if special awards is turned off

This commit is contained in:
james 2010-01-15 15:20:11 +00:00
parent c729e0f8da
commit 59da6152dd

View File

@ -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';
}