[PepperBridgeAbstract] Fix "no results" check (#3357)

CSS class for "no results" text has changed, so the bridge has been
updated accordingly.
This commit is contained in:
sysadminstory 2023-04-20 11:22:53 +02:00 committed by GitHub
parent f0c96008bc
commit 00e716d84d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ class PepperBridgeAbstract extends BridgeAbstract
);
// If there is no results, we don't parse the content because it display some random deals
$noresult = $html->find('h3[class=size--all-l size--fromW2-xl size--fromW3-xxl]', 0);
$noresult = $html->find('h3[class=size--all-l]', 0);
if ($noresult != null && strpos($noresult->plaintext, $this->i8n('no-results')) !== false) {
$this->items = [];
} else {