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
1 changed files with 2 additions and 2 deletions

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