From 4541ce1afe37f81d4e5822a7db029d940100151f Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Sat, 14 Dec 2024 15:19:09 +0300 Subject: [PATCH] fix(profiles): fix #1186 --- Web/Presenters/UserPresenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Presenters/UserPresenter.php b/Web/Presenters/UserPresenter.php index 21f837b6..f238e381 100644 --- a/Web/Presenters/UserPresenter.php +++ b/Web/Presenters/UserPresenter.php @@ -35,7 +35,7 @@ final class UserPresenter extends OpenVKPresenter $this->template->_template = "User/deactivated.xml"; $this->template->user = $user; - } else if($this->user->identity->isBlacklistedBy($user)) { + } else if($this->user->identity && $this->user->identity->isBlacklistedBy($user)) { $this->template->_template = "User/blacklisted.xml"; $this->template->blacklist_status = $user->isBlacklistedBy($this->user->identity);