From af2d07b00220963866623f96a8d42673ab419fb4 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Mon, 1 Mar 2021 11:16:27 +0300 Subject: [PATCH] fixed location filter --- addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php b/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php index f011616a0..779e01c47 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php +++ b/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php @@ -67,7 +67,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface }); } } - if (!setting_value('visiosoft.module.location::hide_location_filter') and isset($param['country'])) { + if (!setting_value('visiosoft.module.location::hide_location_filter')) { $country = !empty($param['country']) ? $param['country'] : setting_value('visiosoft.module.location::default_country'); if ($country) { $query = $query->where('country_id', $country);