From 57f387cdc4302374166686c0b1dfed442a952e74 Mon Sep 17 00:00:00 2001 From: Alec Smecher Date: Wed, 11 Dec 2024 15:17:23 -0800 Subject: [PATCH] Provide default for parse_str to avoid error message with no URL query --- templates/frontend/pages/search.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/frontend/pages/search.tpl b/templates/frontend/pages/search.tpl index 071a8eafcc1..70042fec935 100644 --- a/templates/frontend/pages/search.tpl +++ b/templates/frontend/pages/search.tpl @@ -31,7 +31,7 @@ {capture name="searchFormUrl"}{url escape=false}{/capture} {assign var=formUrlParameters value=[]}{* Prevent Smarty warning *} - {$smarty.capture.searchFormUrl|parse_url:$smarty.const.PHP_URL_QUERY|parse_str:$formUrlParameters} + {$smarty.capture.searchFormUrl|parse_url:$smarty.const.PHP_URL_QUERY|default:""|parse_str:$formUrlParameters}
{foreach from=$formUrlParameters key=paramKey item=paramValue}