forked from science-ation/science-ation
Fix sponsor creation
This commit is contained in:
parent
51eaad76a5
commit
22f75ffd1f
@ -130,8 +130,9 @@ case 'check':
|
||||
if($sponsorr=mysql_fetch_object($sponsorq)) {
|
||||
$sponsor_id=$sponsorr->id;
|
||||
} else {
|
||||
mysql_query("INSERT INTO sponsors (organization,year,notes,confirmed)
|
||||
VALUES ('$sponsor_str','$year','".mysql_escape_string("Imported from external source: $r->name")."','yes')");
|
||||
mysql_query("INSERT INTO sponsors (organization,year,notes)
|
||||
VALUES ('$sponsor_str','$year','".mysql_escape_string("Imported from external source: $r->name")."')");
|
||||
echo mysql_error();
|
||||
$sponsor_id=mysql_insert_id();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user