From 622802e5d4f1869a1a5fb6c603264391294dadc7 Mon Sep 17 00:00:00 2001 From: Quentin Delmas Date: Wed, 12 Sep 2018 13:31:11 +0100 Subject: [PATCH] Fix multiple warnings. Fix JSON request string in case of empty location --- bridges/LeBonCoinBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/LeBonCoinBridge.php b/bridges/LeBonCoinBridge.php index b3204616..b2cffcf8 100644 --- a/bridges/LeBonCoinBridge.php +++ b/bridges/LeBonCoinBridge.php @@ -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')