mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #804 from openclassify/vedat
fixed search country problem
This commit is contained in:
commit
2984e6711e
@ -66,8 +66,8 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
});
|
||||
}
|
||||
}
|
||||
if (!setting_value('visiosoft.module.location::hide_location_filter')) {
|
||||
$country = isset($param['country']) ? $param['country'] : setting_value('visiosoft.module.location::default_country');
|
||||
if (!setting_value('visiosoft.module.location::hide_location_filter') and isset($param['country'])) {
|
||||
$country = !empty($param['country']) ? $param['country'] : setting_value('visiosoft.module.location::default_country');
|
||||
if ($country) {
|
||||
$query = $query->where('country_id', $country);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user