Bad return of error

This commit is contained in:
Laurent Destailleur 2019-02-19 14:02:17 +01:00
parent 226b1e2488
commit 7fdf4be7dd

View File

@ -624,10 +624,10 @@ class MultiCurrency extends CommonObject
} }
/** /**
* Sync rates from api * Sync rates from api
* *
* @param array $response array of reponse from api to sync dolibarr rates * @param array $response array of reponse from api to sync dolibarr rates
* @return void * @return void
*/ */
public static function syncRates($response) public static function syncRates($response)
{ {
@ -639,9 +639,8 @@ class MultiCurrency extends CommonObject
curl_close($ch); curl_close($ch);
$response = json_decode($response); $response = json_decode($response);
if ($response->success) if ($response->success)
{ {
$TRate = $response->quotes; $TRate = $response->quotes;
$timestamp = $response->timestamp; $timestamp = $response->timestamp;