forked from science-ation/science-ation
Fix postback field on award update
This commit is contained in:
parent
c7a3628f4a
commit
4917bc3a75
@ -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))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user