/trunk/PHP/currency_calc.inc.php |
---|
114,7 → 114,7 |
$exchange_rates_ary = array(); |
$source = $data['source']; |
$quotes = $data['quotes']; |
$quotes['USDUSD'] = 1; // missing 06 Aug 2022. A bug?? Reported https://github.com/apilayer/currencylayer-API/issues/16 |
$quotes[$source.$source] = 1; // "USDUSD" missing 06 Aug 2022. A bug?? Reported https://github.com/apilayer/currencylayer-API/issues/16 |
foreach ($quotes as $n => $v) { |
if ($source == substr($n, 0, 3)) { |
$exchange_rates_ary[substr($n, 3, 3)] = $v; // key: USDxxx=12.345 |
/trunk/RTL/VtsCurConv.pas |
---|
551,7 → 551,7 |
// "USDUSD" missing 06 Aug 2022. A bug?? Reported https://github.com/apilayer/currencylayer-API/issues/16 |
if Pos('"USDUSD"', result) = 0 then |
result := StringReplace(result, '"quotes":{', '"quotes":{"USDUSD":1.00,', []); |
result := StringReplace(result, '"quotes":{', '"quotes":{"USDUSD":1,', []); |
end; |
end. |