mirror of
https://github.com/openvk/openvk
synced 2024-11-13 10:39:24 +03:00
User: one more fix with birthday
This commit is contained in:
parent
33478e7bf9
commit
d996be443f
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue