#697 Celep homepage theme [Integration to OC]

This commit is contained in:
Diatrex 2020-02-04 13:41:56 +03:00
parent 60e2e3830a
commit 1fa6d06d21

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'])) {