User: Fixed crashwhen going to the page of a user who has no birthday

This commit is contained in:
0x7d5 2021-09-13 23:35:10 +05:00
parent 9e9a13a001
commit bda20336b8

View file

@ -306,7 +306,11 @@ class User extends RowModel
function getBirthday(): int
{
return $this->getRecord()->birthday;
try {
return $this->getRecord()->birthday;
} catch (Exception $xe) {
return 0;
}
}
function updateNotificationOffset(): void