mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #1282 from openclassify/5253
#5253 [evdepismis] needs
This commit is contained in:
commit
8417a2885b
@ -74,9 +74,6 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
$query = $query->where('city', $city->id);
|
||||
} elseif (isset($param['city']) and !empty(array_filter($param['city']))) {
|
||||
$query = $query->whereIn('city', explode(',', array_first($param['city'])));
|
||||
} elseif ($selectedCity = request()->cookie('selectedCity')) {
|
||||
$selectedCity = json_decode($selectedCity);
|
||||
$query = $query->where('city', $selectedCity->id);
|
||||
}
|
||||
if (isset($param['district']) and !empty(array_filter($param['district']))) {
|
||||
$query = $query->whereIn('district', explode(',', array_first($param['district'])));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user