mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Fix nullpointerexception in user::renderView
This commit is contained in:
parent
a63833c9fa
commit
6c29d40099
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ final class UserPresenter extends OpenVKPresenter
|
||||||
{
|
{
|
||||||
$user = $this->users->get($id);
|
$user = $this->users->get($id);
|
||||||
if(!$user || $user->isDeleted()) {
|
if(!$user || $user->isDeleted()) {
|
||||||
if($user->isDeactivated()) {
|
if(!is_null($user) && $user->isDeactivated()) {
|
||||||
$this->template->_template = "User/deactivated.xml";
|
$this->template->_template = "User/deactivated.xml";
|
||||||
|
|
||||||
$this->template->user = $user;
|
$this->template->user = $user;
|
||||||
|
|
Loading…
Reference in a new issue