mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 14:20:16 +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:
@@ -77,7 +77,7 @@ class MarktplaatsBridge extends BridgeAbstract {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$url = 'https://www.marktplaats.nl/lrp/api/search?query=' . urlencode($this->getInput('q')) . $query;
|
$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);
|
$jsonObj = json_decode($jsonString);
|
||||||
foreach($jsonObj->listings as $listing) {
|
foreach($jsonObj->listings as $listing) {
|
||||||
if(!$excludeGlobal || $listing->location->distanceMeters >= 0) {
|
if(!$excludeGlobal || $listing->location->distanceMeters >= 0) {
|
||||||
|
Reference in New Issue
Block a user