From bf9d63647a79d0d19e01111bfb2946b8d48fdcaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6hr?= Date: Mon, 2 Oct 2023 17:43:27 +0200 Subject: [PATCH] Fix template --- themes/belugax/templates/search/searchbox.phtml | 2 +- themes/belugax_hcu/templates/search/searchbox.phtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/belugax/templates/search/searchbox.phtml b/themes/belugax/templates/search/searchbox.phtml index 650d11bb4a..ef54d160d1 100755 --- a/themes/belugax/templates/search/searchbox.phtml +++ b/themes/belugax/templates/search/searchbox.phtml @@ -33,7 +33,7 @@ $searchType = $this->searchType; if ($this->lookfor == '') { - if ($_GET['lookfor']) { + if (!empty($_GET['lookfor'])) { $this->lookfor = $_GET['lookfor']; foreach($keywords as $identifier => $type) { $this->lookfor = str_replace($type.":",$identifier." ",$this->lookfor); diff --git a/themes/belugax_hcu/templates/search/searchbox.phtml b/themes/belugax_hcu/templates/search/searchbox.phtml index 44ffaf5cce..2419fa3876 100755 --- a/themes/belugax_hcu/templates/search/searchbox.phtml +++ b/themes/belugax_hcu/templates/search/searchbox.phtml @@ -33,7 +33,7 @@ $searchType = $this->searchType; if ($this->lookfor === '') { - if ($_GET['lookfor']) { + if (!empty($_GET['lookfor'])) { $this->lookfor = $_GET['lookfor']; if (isset($keywords) && is_array($keywords)) { foreach ($keywords as $identifier => $type) {