From 44893ff40f09c3240c3b32b9c1e7fe49769cb52d Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sun, 7 Nov 2021 00:30:35 +0300 Subject: [PATCH] Themes: Hot fix for unauthorized users --- Web/Presenters/OpenVKPresenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Presenters/OpenVKPresenter.php b/Web/Presenters/OpenVKPresenter.php index f07da50b..359d2d00 100644 --- a/Web/Presenters/OpenVKPresenter.php +++ b/Web/Presenters/OpenVKPresenter.php @@ -234,7 +234,7 @@ abstract class OpenVKPresenter extends SimplePresenter $this->template->theme = Themepacks::i()[Session::i()->get("_tempTheme", "ovk")]; else if($this->requestParam("themePreview")) $this->template->theme = Themepacks::i()[$this->requestParam("themePreview")]; - else if($this->user->identity->getTheme()) + else if($this->user->identity !== null && $this->user->identity->getTheme()) $this->template->theme = $this->user->identity->getTheme(); // Знаю, каша ебаная, целестора рефактор всё равно сделает :)))