Fix check

This commit is contained in:
patrick 2025-02-12 22:38:50 +00:00
parent 6cef610366
commit 5ef975d454

View File

@ -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->execute();
show_pdo_errors_if_any($pdo);
if ($r->newdate = "") {
if ($r->newdate == "") {
$r->newdate = "0000-00-00 00:00:00";
}
while ($r = $q->fetch(PDO::FETCH_OBJ)) {