forked from science-ation/science-ation
Fix check
This commit is contained in:
parent
6cef610366
commit
5ef975d454
@ -137,7 +137,7 @@ 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 = $pdo->prepare("SELECT DATE_ADD(date,INTERVAL 365 DAY) AS newdate,name,description FROM dates WHERE year='$currentfairyear'");
|
||||||
$q->execute();
|
$q->execute();
|
||||||
show_pdo_errors_if_any($pdo);
|
show_pdo_errors_if_any($pdo);
|
||||||
if ($r->newdate = "") {
|
if ($r->newdate == "") {
|
||||||
$r->newdate = "0000-00-00 00:00:00";
|
$r->newdate = "0000-00-00 00:00:00";
|
||||||
}
|
}
|
||||||
while ($r = $q->fetch(PDO::FETCH_OBJ)) {
|
while ($r = $q->fetch(PDO::FETCH_OBJ)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user