Fix sponsor creation

This commit is contained in:
dave 2009-09-26 08:50:16 +00:00
parent 51eaad76a5
commit 22f75ffd1f

View File

@ -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();
}