Fix two bugs in the rollover

This commit is contained in:
james 2009-09-09 01:57:22 +00:00
parent 2f0deca246
commit 00d43f0e9a

View File

@ -175,7 +175,7 @@
array("type","name","description","system","goal"));
echo i18n("Rolling sponsorship levels")." <br />";
roll($currentfairyear, $newfairyear, "sponsorship_levels",
roll($currentfairyear, $newfairyear, "sponsorships_levels",
array("level","min","max","description"));
echo i18n("Rolling sponsorships")." <br />";
@ -330,9 +330,9 @@
echo mysql_error();
while($r=mysql_fetch_assoc($q)) {
$d = $newfairyear - $currentfairyear;
mysql_query("INSERT INTO judges_timeslots (`year`,`round_id`,`type`,`date`,`starttime`,`endtime`,`round_name`)
mysql_query("INSERT INTO judges_timeslots (`year`,`round_id`,`type`,`date`,`starttime`,`endtime`,`name`)
VALUES ('$newfairyear','0','{$r['type']}',DATE_ADD('{$r['date']}', INTERVAL $d YEAR),
'{$r['starttime']}','{$r['endtime']}','{$r['round_name']}')");
'{$r['starttime']}','{$r['endtime']}','{$r['name']}')");
echo mysql_error();
$round_id = mysql_insert_id();
$qq = mysql_query("SELECT * FROM judges_timeslots WHERE round_id='{$r['id']}'");