Start uploaded winners as "open", not "new", so if it's an upload for a

winner that needs to login, it won't create a new student for them, the
student already exists.
This commit is contained in:
dave 2010-03-20 06:08:47 +00:00
parent d3c0746949
commit 96c3b65cd5

View File

@ -237,7 +237,7 @@ function award_upload_assign(&$fair, &$award, &$prize, &$project, $year, &$respo
//actually insert it
mysql_query("INSERT INTO registrations (num,email,start,status,schools_id,year) VALUES (".
"'$regnum','$regnum',NOW(),'new',NULL,'$year')");
"'$regnum','$regnum',NOW(),'open',NULL,'$year')");
$registrations_id = mysql_insert_id();
/* We'll fill in the email address later */