Fix error management

This commit is contained in:
Laurent Destailleur 2019-02-19 14:01:08 +01:00
parent 07d1559802
commit 226b1e2488

View File

@ -631,7 +631,7 @@ class MultiCurrency extends CommonObject
*/
public static function syncRates($response)
{
global $db,$conf;
global $conf, $db, $langs;
$ch = curl_init('http://apilayer.net/api/live?access_key='.$key.'');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);