1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 05:40:24 +02:00

Fix multiple warnings.

Fix JSON request string in case of empty location
This commit is contained in:
Quentin Delmas
2018-09-12 13:31:11 +01:00
parent 6da8daf1a3
commit 622802e5d4

View File

@@ -362,7 +362,7 @@ class LeBonCoinBridge extends BridgeAbstract {
);
$opts = array(
CURL_CUSTOMREQUEST => 'POST',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => $data
);
@@ -424,7 +424,7 @@ class LeBonCoinBridge extends BridgeAbstract {
$requestJson = new StdClass();
$requestJson->owner_type = $this->getInput('owner');
$requestJson->filters->location = array();
$requestJson->filters = new StdClass();
$requestJson->filters->keywords = array(
'text' => $this->getInput('keywords')