[PepperBridgeAbstract] Fix the "no result" detection (#4082)

The "no result" test did not work, it is fixed now.
This commit is contained in:
sysadminstory 2024-04-18 01:43:53 +02:00 committed by GitHub
parent 97f5dafbc5
commit 8c3e973b9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,8 +55,8 @@ class PepperBridgeAbstract extends BridgeAbstract
);
// If there is no results, we don't parse the content because it display some random deals
$noresult = $html->find('section[class=subNav]', 0)->find('div[class*=page-center listLayout aGrid]', 0);
if ($noresult === null) {
$noresult = $html->find('div[id=content-list]', 0)->find('h2', 0);
if ($noresult !== null) {
$this->items = [];
} else {
foreach ($list as $deal) {