fix: deprecated

This commit is contained in:
origami11@yandex.ru 2024-01-25 20:22:52 +03:00
parent 2947e4aac3
commit 5cfd2ee773

View file

@ -32,7 +32,7 @@ class Top extends Composite
public function render() public function render()
{ {
$alias = $this->doTree('alias'); $this->doTree('alias');
// Скрипты и стили // Скрипты и стили
$this->set('scriptstring', $this->getScriptRaw()); $this->set('scriptstring', $this->getScriptRaw());
@ -47,7 +47,7 @@ class Top extends Composite
if (is_string($s)) { if (is_string($s)) {
continue; continue;
} }
$moduleName = explode('_', $s->active_module, 2); $moduleName = explode('_', $s->active_module ?: '', 2);
if (count($moduleName) < 2) { if (count($moduleName) < 2) {
continue; continue;
} }