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