forked from science-ation/science-ation
Fix init
This commit is contained in:
parent
9f49d4b35b
commit
6cef610366
@ -137,7 +137,9 @@ if (get_value_from_array($_POST, 'action') == 'rollover' && get_value_from_array
|
||||
$q = $pdo->prepare("SELECT DATE_ADD(date,INTERVAL 365 DAY) AS newdate,name,description FROM dates WHERE year='$currentfairyear'");
|
||||
$q->execute();
|
||||
show_pdo_errors_if_any($pdo);
|
||||
$r->newdate = $r->newdate ?? "0000-00-00 00:00:00";
|
||||
if ($r->newdate = "") {
|
||||
$r->newdate = "0000-00-00 00:00:00";
|
||||
}
|
||||
while ($r = $q->fetch(PDO::FETCH_OBJ)) {
|
||||
$stmt = $pdo->prepare("INSERT INTO dates (date,name,description,year) VALUES (
|
||||
'" . $r->newdate . "',
|
||||
|
Loading…
x
Reference in New Issue
Block a user