From 46fecabfdf800404fde6e9a7d6941e4eb10a8057 Mon Sep 17 00:00:00 2001 From: ah-net <103565001+ah-net@users.noreply.github.com> Date: Wed, 4 May 2022 09:58:48 +0200 Subject: [PATCH] Fix php 7.4 bug --- Model/Catalog/Layer/Url/Strategy/QueryParameterStrategy.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Model/Catalog/Layer/Url/Strategy/QueryParameterStrategy.php b/Model/Catalog/Layer/Url/Strategy/QueryParameterStrategy.php index 6effbaa6..cd7a5a8e 100644 --- a/Model/Catalog/Layer/Url/Strategy/QueryParameterStrategy.php +++ b/Model/Catalog/Layer/Url/Strategy/QueryParameterStrategy.php @@ -127,6 +127,7 @@ protected function getCurrentQueryUrl(MagentoHttpRequest $request, array $query) if ($originalUrl = $request->getQuery('__tw_original_url')) { $urlArray = explode('/', $originalUrl); + $newOriginalUrl = ''; foreach ($urlArray as $url) { $newOriginalUrl .= '/' . filter_var($url, FILTER_SANITIZE_ENCODED); }