From e71d8c410b043f439526cc8367032dfb209b603a Mon Sep 17 00:00:00 2001 From: grandeljay Date: Wed, 23 Nov 2022 18:22:40 +0100 Subject: [PATCH] Fix undefined property --- src/functions/getWishlistNameSuggestion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/getWishlistNameSuggestion.php b/src/functions/getWishlistNameSuggestion.php index 92a64604..a718a0fe 100644 --- a/src/functions/getWishlistNameSuggestion.php +++ b/src/functions/getWishlistNameSuggestion.php @@ -17,7 +17,7 @@ function getWishlistNameSuggestion(): string $startOfEaster = strtotime('15. April'); // Approximate $startOfChristmas = strtotime('24. December'); - if ($user->birthdate) { + if (isset($user->birthdate)) { $birthdates = explode('-', $user->birthdate); $birthdate = new \DateTime();