Merge pull request #285 from openclassify/dia

#697 Celep homepage theme [Integration to OC]
This commit is contained in:
Fatih Alp 2020-02-04 16:40:27 +03:00 committed by GitHub
commit 8316d4581f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
if (!empty($param['country'])) {
$query = $query->where('country_id', $param['country']);
}
if (isset($param['city']) and !empty(array_filter($param['city']))) {
if (isset($param['city']) and !empty($param['city']) and !empty(array_filter($param['city']))) {
$query = $query->whereIn('city', $param['city']);
}
if (!empty($param['cat'])) {