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