User: one more fix with birthday

This commit is contained in:
0x7d5 2021-09-14 12:12:41 +05:00
parent 33478e7bf9
commit d996be443f

View file

@ -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