Skip to content

Commit

Permalink
remove duplicated banners from search results
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszWojdalowicz committed Jun 14, 2022
1 parent 6a86eaf commit c520032
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Provider/BannersProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit c520032

Please sign in to comment.