Fix postback field on award update

This commit is contained in:
james 2007-11-27 23:02:40 +00:00
parent c7a3628f4a
commit 4917bc3a75

View File

@ -104,13 +104,14 @@
award_sponsors_id='$sponsor_id', award_sponsors_id='$sponsor_id',
name='".mysql_escape_string($award['name_en'][0])."', name='".mysql_escape_string($award['name_en'][0])."',
criteria='".mysql_escape_string($award['criteria_en'][0])."', criteria='".mysql_escape_string($award['criteria_en'][0])."',
postback='".mysql_escape_string($postback)."' external_postback='".mysql_escape_string($postback)."'
WHERE WHERE
id='$awardrecord->id' id='$awardrecord->id'
AND external_identifier='".mysql_escape_string($identifier)."' AND external_identifier='".mysql_escape_string($identifier)."'
AND year='$year' AND year='$year'
"); ");
echo mysql_error();
//update the prizes //update the prizes
if(is_array($award['prizes'][0]) && count($award['prizes'][0]['prize']>0)) if(is_array($award['prizes'][0]) && count($award['prizes'][0]['prize']>0))
{ {