mirror of
https://github.com/openvk/openvk
synced 2024-11-14 02:59:12 +03:00
User: Fixed crashwhen going to the page of a user who has no birthday
This commit is contained in:
parent
9e9a13a001
commit
bda20336b8
1 changed files with 5 additions and 1 deletions
|
@ -306,7 +306,11 @@ class User extends RowModel
|
||||||
|
|
||||||
function getBirthday(): int
|
function getBirthday(): int
|
||||||
{
|
{
|
||||||
return $this->getRecord()->birthday;
|
try {
|
||||||
|
return $this->getRecord()->birthday;
|
||||||
|
} catch (Exception $xe) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateNotificationOffset(): void
|
function updateNotificationOffset(): void
|
||||||
|
|
Loading…
Reference in a new issue