Fix undefined property
This commit is contained in:
parent
ae9f231274
commit
e71d8c410b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue