From 527487d25502aaabd455becae163ed33cca508d4 Mon Sep 17 00:00:00 2001 From: dp-ifacesoft Date: Wed, 9 Sep 2020 13:10:08 +0300 Subject: [PATCH] fix --- source/Ice/Core/WidgetComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ice/Core/WidgetComponent.php b/source/Ice/Core/WidgetComponent.php index e9d29f5c..9362249d 100644 --- a/source/Ice/Core/WidgetComponent.php +++ b/source/Ice/Core/WidgetComponent.php @@ -157,7 +157,7 @@ protected function setTemplateClass($templateClass) ? $widgetComponentClass::getConfig()->get('render/template', true) : $templateClass; - if ($this->templateClass && $this->templateClass[0] == '_') { + if ($this->templateClass && is_array($this->templateClass) && $this->templateClass[0] === '_') { $this->templateClass = $widgetComponentClass . $this->templateClass; }