diff --git a/Helper/Data.php b/Helper/Data.php index e9a44b0..ed68ce0 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -261,7 +261,7 @@ public function getFormPostPaths($storeId = null) $data[] = $value; } } - $custom = explode("\n", str_replace("\r", '', $this->getConfigFrontend('custom/paths', $storeId))); + $custom = explode("\n", str_replace("\r", '', $this->getConfigFrontend('custom/paths', $storeId) ?? '')); if (!$custom) { return $data; } @@ -277,7 +277,7 @@ public function getFormPostPaths($storeId = null) public function getCssSelectors($storeId = null) { $data = $this->getConfigFrontend('custom/css', $storeId); - $forms = explode("\n", str_replace("\r", '', $data)); + $forms = explode("\n", str_replace("\r", '', $data ?? '')); foreach ($forms as $key => $value) { $forms[$key] = trim($value, ' '); }