Download schedule_judges and self_nominate for awards too

This commit is contained in:
dave 2010-04-03 16:46:43 +00:00
parent 7616982ff2
commit 6bdbc85829

View File

@ -145,13 +145,17 @@ case 'check':
} }
$self_nominate = ($award['self_nominate'] == 'yes') ? 'yes' : 'no';
$schedule_judges = ($award['schedule_judges'] == 'yes') ? 'yes' : 'no';
mysql_query("UPDATE award_awards SET mysql_query("UPDATE award_awards SET
sponsors_id='$sponsor_id', sponsors_id='$sponsor_id',
name='".mysql_escape_string($award['name_en'])."', name='".mysql_escape_string($award['name_en'])."',
criteria='".mysql_escape_string($award['criteria_en'])."', criteria='".mysql_escape_string($award['criteria_en'])."',
external_postback='".mysql_escape_string($postback)."', external_postback='".mysql_escape_string($postback)."',
external_register_winners='".(($award['external_register_winners']==1)?1:0)."', external_register_winners='".(($award['external_register_winners']==1)?1:0)."',
external_additional_materials='".(($award['external_additional_materials']==1)?1:0)."' external_additional_materials='".(($award['external_additional_materials']==1)?1:0)."',
self_nominate='$self_nominate',
schedule_judges='$schedule_judges'
WHERE WHERE
id='$award_id' id='$award_id'
AND external_identifier='".mysql_escape_string($identifier)."' AND external_identifier='".mysql_escape_string($identifier)."'