From bc53731f2584a65e0cb5da0a8fe0eab9776ca1f1 Mon Sep 17 00:00:00 2001 From: Alec Smecher Date: Wed, 11 Dec 2024 15:18:58 -0800 Subject: [PATCH] Provide default for parse_str to avoid error message with no URL query --- templates/frontend/components/searchForm_simple.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/frontend/components/searchForm_simple.tpl b/templates/frontend/components/searchForm_simple.tpl index 9354f987571..b62f59cb709 100644 --- a/templates/frontend/components/searchForm_simple.tpl +++ b/templates/frontend/components/searchForm_simple.tpl @@ -12,7 +12,7 @@ {if !$currentJournal || $currentJournal->getData('publishingMode') != $smarty.const.PUBLISHING_MODE_NONE} {capture name="searchFormUrl"}{url page="search" op="search" 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}