fix ecb currency parsing

This commit is contained in:
Dennis Eichhorn 2019-12-15 14:37:44 +01:00
parent e008c094e5
commit 6bb827e97a

View File

@ -97,7 +97,7 @@ final class Currency
*/
public static function getEcbEuroRates() : array
{
if (!empty(self::$ecbCurrencies)) {
if (empty(self::$ecbCurrencies)) {
$request = new Request(new Http('https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml'));
$request->setMethod(RequestMethod::GET);