diff --git a/Observer/AddBlock.php b/Observer/AddBlock.php index 692fc1a..f5fd167 100644 --- a/Observer/AddBlock.php +++ b/Observer/AddBlock.php @@ -87,6 +87,9 @@ public function execute(Observer $observer) foreach ($this->helperData->getActiveSliders() as $slider) { $locations = explode(',', $slider->getLocation()); foreach ($locations as $value) { + if(!$value) { + continue;//when location doesn't set, $value is '' + } list($pageType, $location) = explode('.', $value); if (($fullActionName === $pageType || $pageType === 'allpage') && strpos($location, $type) !== false