1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 05:10:15 +02:00

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

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) {