From 6bdbc8582928f76f6aef703685d1c308ce7ed651 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 3 Apr 2010 16:46:43 +0000 Subject: [PATCH] Download schedule_judges and self_nominate for awards too --- admin/award_download.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/award_download.php b/admin/award_download.php index 1430fa3..6de8f71 100644 --- a/admin/award_download.php +++ b/admin/award_download.php @@ -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 sponsors_id='$sponsor_id', name='".mysql_escape_string($award['name_en'])."', criteria='".mysql_escape_string($award['criteria_en'])."', external_postback='".mysql_escape_string($postback)."', 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 id='$award_id' AND external_identifier='".mysql_escape_string($identifier)."'