mirror of
https://github.com/openvk/openvk
synced 2025-07-07 00:09:48 +03:00
Remove Tracy warning in OpenVKPresenter: 237 line
PHP Notice: Trying to get property 'identity' of non-object in .../Web/Presenters/OpenVKPresenter.php:237 Inserted <if> statement with check an user session.
This commit is contained in:
parent
610b2bda6d
commit
269918b8a3
1 changed files with 4 additions and 2 deletions
|
@ -234,9 +234,11 @@ 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 !== null && $this->user->identity->getTheme())
|
||||
else if (!is_null($this->user)) {
|
||||
if ($this->user->identity !== null && $this->user->identity->getTheme()) {
|
||||
$this->template->theme = $this->user->identity->getTheme();
|
||||
|
||||
}
|
||||
}
|
||||
// Знаю, каша ебаная, целестора рефактор всё равно сделает :)))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue