Bad return of error
This commit is contained in:
parent
226b1e2488
commit
7fdf4be7dd
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user