mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
fix 500 on non existent page
This commit is contained in:
parent
78004b1fab
commit
62645d8cba
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue