Skip to content

Commit

Permalink
PHP8 fixes, happy 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargaj committed Jan 1, 2024
1 parent b41c69f commit fb6a616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prod.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fb6a616

Please sign in to comment.