forked from science-ation/science-ation
Fix two bugs in the rollover
This commit is contained in:
parent
2f0deca246
commit
00d43f0e9a
@ -175,7 +175,7 @@
|
|||||||
array("type","name","description","system","goal"));
|
array("type","name","description","system","goal"));
|
||||||
|
|
||||||
echo i18n("Rolling sponsorship levels")." <br />";
|
echo i18n("Rolling sponsorship levels")." <br />";
|
||||||
roll($currentfairyear, $newfairyear, "sponsorship_levels",
|
roll($currentfairyear, $newfairyear, "sponsorships_levels",
|
||||||
array("level","min","max","description"));
|
array("level","min","max","description"));
|
||||||
|
|
||||||
echo i18n("Rolling sponsorships")." <br />";
|
echo i18n("Rolling sponsorships")." <br />";
|
||||||
@ -330,9 +330,9 @@
|
|||||||
echo mysql_error();
|
echo mysql_error();
|
||||||
while($r=mysql_fetch_assoc($q)) {
|
while($r=mysql_fetch_assoc($q)) {
|
||||||
$d = $newfairyear - $currentfairyear;
|
$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),
|
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();
|
echo mysql_error();
|
||||||
$round_id = mysql_insert_id();
|
$round_id = mysql_insert_id();
|
||||||
$qq = mysql_query("SELECT * FROM judges_timeslots WHERE round_id='{$r['id']}'");
|
$qq = mysql_query("SELECT * FROM judges_timeslots WHERE round_id='{$r['id']}'");
|
||||||
|
Loading…
Reference in New Issue
Block a user