diff --git a/themes/belugax/templates/search/searchbox.phtml b/themes/belugax/templates/search/searchbox.phtml index 650d11bb4..ef54d160d 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 44ffaf5cc..2419fa387 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) {