Skip to content

Commit

Permalink
fix error when checking emptiness of $Year
Browse files Browse the repository at this point in the history
  • Loading branch information
DAcodedBEAT committed Jan 6, 2024
1 parent 445f822 commit 4b7b97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChurchCRM/utils/MiscUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static function getPhotoCacheExpirationTimestamp(): int

public static function formatAge(int $Month, int $Day, ?int $Year = null): string
{
if (empty($Year === null)) {
if (empty($Year)) {
return '';
}

Expand Down

0 comments on commit 4b7b97a

Please sign in to comment.