diff --git a/config/rollover.php b/config/rollover.php
index 0d44e024..c00e1dfc 100644
--- a/config/rollover.php
+++ b/config/rollover.php
@@ -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)) {