fixed search country problem

This commit is contained in:
vedatakdogan 2020-11-20 09:44:04 +03:00
parent 3d6b828e0b
commit 942c91e28a

View File

@ -66,8 +66,8 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
}); });
} }
} }
if (!setting_value('visiosoft.module.location::hide_location_filter')) { if (!setting_value('visiosoft.module.location::hide_location_filter') and isset($param['country'])) {
$country = isset($param['country']) ? $param['country'] : setting_value('visiosoft.module.location::default_country'); $country = !empty($param['country']) ? $param['country'] : setting_value('visiosoft.module.location::default_country');
if ($country) { if ($country) {
$query = $query->where('country_id', $country); $query = $query->where('country_id', $country);
} }