Fix multiple warnings.
Fix JSON request string in case of empty location
This commit is contained in:
parent
6da8daf1a3
commit
622802e5d4
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue