From fb6a61677cd4fc50935d8d177a29052caa9910dd Mon Sep 17 00:00:00 2001 From: Gargaj Date: Mon, 1 Jan 2024 11:36:58 +0100 Subject: [PATCH] PHP8 fixes, happy 2024 --- prod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prod.php b/prod.php index 7e9cec2..963c621 100644 --- a/prod.php +++ b/prod.php @@ -794,7 +794,7 @@ function isEventEligible($event, $prod) } if ($event->eligibleYear) { - if ($event->eligibleYear != (int)substr($prod->releaseDate,0,4)) + if (!$prod->releaseDate || $event->eligibleYear != (int)substr($prod->releaseDate,0,4)) { return false; }