forked from science-ation/science-ation
Fix pos
This commit is contained in:
parent
5ef975d454
commit
790ba92692
@ -137,10 +137,12 @@ 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);
|
||||
if ($r->newdate == "") {
|
||||
$r->newdate = "0000-00-00 00:00:00";
|
||||
}
|
||||
|
||||
while ($r = $q->fetch(PDO::FETCH_OBJ)) {
|
||||
if ($r->newdate == "") {
|
||||
$r->newdate = "0000-00-00 00:00:00";
|
||||
}
|
||||
|
||||
$stmt = $pdo->prepare("INSERT INTO dates (date,name,description,year) VALUES (
|
||||
'" . $r->newdate . "',
|
||||
'" . $r->name . "',
|
||||
|
Loading…
x
Reference in New Issue
Block a user