From 1fa6d06d21074edd979cf238714061320330576e Mon Sep 17 00:00:00 2001 From: Diatrex Date: Tue, 4 Feb 2020 13:41:56 +0300 Subject: [PATCH] #697 Celep homepage theme [Integration to OC] --- addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php b/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php index 0050617a8..72a29e2a8 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php +++ b/addons/default/visiosoft/advs-module/src/Adv/AdvRepository.php @@ -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'])) {