[AllegroBridge] fix logical condition on parameters (#4049)

This commit is contained in:
Dawid Wróbel 2024-04-02 00:06:15 +02:00 committed by GitHub
parent a12bab9eed
commit bb979e9e08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,11 +81,11 @@ class AllegroBridge extends BridgeAbstract
$results = $html->find('article[data-analytics-view-custom-context="REGULAR"]');
if (!$this->getInput('includeSponsoredOffers')) {
if ($this->getInput('includeSponsoredOffers')) {
$results = array_merge($results, $html->find('article[data-analytics-view-custom-context="SPONSORED"]'));
}
if (!$this->getInput('includePromotedOffers')) {
if ($this->getInput('includePromotedOffers')) {
$results = array_merge($results, $html->find('article[data-analytics-view-custom-context="PROMOTED"]'));
}