fix 500 on non existent page

This commit is contained in:
mrilyew 2024-12-07 16:50:41 +03:00
parent 78004b1fab
commit 62645d8cba

View file

@ -34,7 +34,7 @@ final class UserPresenter extends OpenVKPresenter
$this->template->_template = "User/deactivated.xml"; $this->template->_template = "User/deactivated.xml";
$this->template->user = $user; $this->template->user = $user;
} else if(!$user->canBeViewedBy($this->user->identity)) { } else if(!is_null($user) && !$user->canBeViewedBy($this->user->identity)) {
$this->template->_template = "User/private.xml"; $this->template->_template = "User/private.xml";
$this->template->user = $user; $this->template->user = $user;