From 5cfd2ee773e14d90e663bfba4d73901d15da4e6d Mon Sep 17 00:00:00 2001 From: "origami11@yandex.ru" Date: Thu, 25 Jan 2024 20:22:52 +0300 Subject: [PATCH] fix: deprecated --- src/View/Top.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/Top.php b/src/View/Top.php index 804ac0f..6cf27d7 100644 --- a/src/View/Top.php +++ b/src/View/Top.php @@ -32,7 +32,7 @@ class Top extends Composite public function render() { - $alias = $this->doTree('alias'); + $this->doTree('alias'); // Скрипты и стили $this->set('scriptstring', $this->getScriptRaw()); @@ -47,7 +47,7 @@ class Top extends Composite if (is_string($s)) { continue; } - $moduleName = explode('_', $s->active_module, 2); + $moduleName = explode('_', $s->active_module ?: '', 2); if (count($moduleName) < 2) { continue; }