1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-05 16:17:28 +02:00

[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

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"]'));
}