From c52003298ff5e2e46c7d2dee0f2468fade7c40dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Wojda=C5=82owicz?= Date: Tue, 14 Jun 2022 15:21:16 +0200 Subject: [PATCH] remove duplicated banners from search results --- src/Provider/BannersProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Provider/BannersProvider.php b/src/Provider/BannersProvider.php index 96f63ca..4652d0a 100644 --- a/src/Provider/BannersProvider.php +++ b/src/Provider/BannersProvider.php @@ -34,6 +34,7 @@ public function getAdsBanners( $adBanners = $this->bannersOperator->operate($ad, $sectionCode, $localeCode); if (null !== $adBanners) { $banners = array_merge($banners, $adBanners); + $banners = array_unique($banners, \SORT_REGULAR); } }