fix: type error in function call (#2769)

Fixes:
Argument 2 passed to getContents() must be of the type array, int given
This commit is contained in:
Dag 2022-06-04 21:05:43 +02:00 committed by GitHub
parent 1fd2f37bb4
commit d60d8313d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class MarktplaatsBridge extends BridgeAbstract {
}
}
$url = 'https://www.marktplaats.nl/lrp/api/search?query=' . urlencode($this->getInput('q')) . $query;
$jsonString = getSimpleHTMLDOM($url, 900);
$jsonString = getSimpleHTMLDOM($url);
$jsonObj = json_decode($jsonString);
foreach($jsonObj->listings as $listing) {
if(!$excludeGlobal || $listing->location->distanceMeters >= 0) {