forked from science-ation/science-ation
Properly detect complete status if special awards is turned off
This commit is contained in:
parent
c729e0f8da
commit
59da6152dd
@ -74,6 +74,9 @@ function judge_status_special_awards(&$u)
|
|||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
if($config['judges_specialaward_enable'] == 'no' && $u['special_award_only']=='no')
|
||||||
|
return 'complete';
|
||||||
|
|
||||||
/* Complete if:
|
/* Complete if:
|
||||||
* - judge has selected (none) "no special award preferences"
|
* - judge has selected (none) "no special award preferences"
|
||||||
* - judge has selected between min and max preferences
|
* - judge has selected between min and max preferences
|
||||||
@ -128,7 +131,6 @@ function judge_status_update(&$u)
|
|||||||
|
|
||||||
user_save($u);
|
user_save($u);
|
||||||
return ($u['judge_complete'] == 'yes') ? 'complete' : 'incomplete';
|
return ($u['judge_complete'] == 'yes') ? 'complete' : 'incomplete';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user