diff --git a/Web/Presenters/UserPresenter.php b/Web/Presenters/UserPresenter.php index abaef4e0..3e211062 100644 --- a/Web/Presenters/UserPresenter.php +++ b/Web/Presenters/UserPresenter.php @@ -35,13 +35,13 @@ final class UserPresenter extends OpenVKPresenter $this->template->_template = "User/deactivated.xml"; $this->template->user = $user; - } else if($this->user->identity && $this->user->identity->isBlacklistedBy($user)) { + } else if(!is_null($user) && $this->user->identity && $this->user->identity->isBlacklistedBy($user)) { $this->template->_template = "User/blacklisted.xml"; $this->template->blacklist_status = $user->isBlacklistedBy($this->user->identity); $this->template->ignore_status = $user->isIgnoredBy($this->user->identity); $this->template->user = $user; - } else if($user->isBlacklistedBy($this->user->identity)) { + } else if(!is_null($user) && $user->isBlacklistedBy($this->user->identity)) { $this->template->_template = "User/blacklisted_pov.xml"; $this->template->ignore_status = $user->isIgnoredBy($this->user->identity); diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index 245ccfb0..8cc96e4a 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -45,7 +45,7 @@ {include headIncludes} {/ifset} -
+