mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00: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:
parent
1fd2f37bb4
commit
d60d8313d0
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user