Bad return of error
This commit is contained in:
parent
226b1e2488
commit
7fdf4be7dd
1 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
* @return void
|
||||
* @param array $response array of reponse from api to sync dolibarr rates
|
||||
* @return void
|
||||
*/
|
||||
public static function syncRates($response)
|
||||
{
|
||||
|
|
@ -639,9 +639,8 @@ class MultiCurrency extends CommonObject
|
|||
curl_close($ch);
|
||||
$response = json_decode($response);
|
||||
|
||||
if ($response->success)
|
||||
{
|
||||
|
||||
if ($response->success)
|
||||
{
|
||||
$TRate = $response->quotes;
|
||||
$timestamp = $response->timestamp;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue