From 262c67098a18078043bdd1186b55486545ccc328 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Thu, 31 Aug 2023 11:30:24 +0200 Subject: [PATCH] fix: setting birthdate on login --- src/classes/wishthis/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/wishthis/User.php b/src/classes/wishthis/User.php index 775a63bd..8e5416f8 100644 --- a/src/classes/wishthis/User.php +++ b/src/classes/wishthis/User.php @@ -175,7 +175,7 @@ class User $this->password_reset_valid_until = \strtotime($fields['password_reset_valid_until']); $this->last_login = \strtotime($fields['last_login']); $this->power = $fields['power']; - $this->birthdate = $fields['birthdate']; + $this->birthdate = \strtotime($fields['birthdate'] ?? 0); $this->language = $fields['language']; $this->currency = $fields['currency']; $this->name_first = $fields['name_first'] ?? '';