From 00d43f0e9a8daddcc2a7f40a352c36cd5275f837 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 9 Sep 2009 01:57:22 +0000 Subject: [PATCH] Fix two bugs in the rollover --- config/rollover.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/rollover.php b/config/rollover.php index 6519c19..1eed2bc 100644 --- a/config/rollover.php +++ b/config/rollover.php @@ -175,7 +175,7 @@ array("type","name","description","system","goal")); echo i18n("Rolling sponsorship levels")."
"; - roll($currentfairyear, $newfairyear, "sponsorship_levels", + roll($currentfairyear, $newfairyear, "sponsorships_levels", array("level","min","max","description")); echo i18n("Rolling sponsorships")."
"; @@ -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']}'");