From d996be443fe087b27deb5559c4e3de386a769ea2 Mon Sep 17 00:00:00 2001 From: 0x7d5 <86822737+VladimirLapskiy@users.noreply.github.com> Date: Tue, 14 Sep 2021 12:12:41 +0500 Subject: [PATCH] User: one more fix with birthday --- Web/Models/Entities/User.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Web/Models/Entities/User.php b/Web/Models/Entities/User.php index 6175e707..3525e5f3 100644 --- a/Web/Models/Entities/User.php +++ b/Web/Models/Entities/User.php @@ -304,13 +304,9 @@ class User extends RowModel return $this->getRecord()->notification_offset; } - function getBirthday(): int + function getBirthday(): ?int { - try { - return $this->getRecord()->birthday; - } catch (Exception $xe) { - return 0; - } + return $this->getRecord()->birthday; } function updateNotificationOffset(): void