diff --git a/Helper/Data.php b/Helper/Data.php index dba3c1b..5212e3a 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -135,7 +135,10 @@ public function isHeaderEnabled(ThemeInterface $theme = null) $themeConfig = $this->themeCodeToConfigPath($theme); $action = $this->_getRequest()->getFullActionName(); - $exclude = explode("\n", $this->getConfigValue($themeConfig . self::PATH_HEADER_EXCLUDE)); + $exclude = explode( + "\n", + $this->getConfigValue($themeConfig . self::PATH_HEADER_EXCLUDE) ?: '' + ); $exclude = array_map('trim', $exclude); if (in_array($action, $exclude)) {