From ce38d74d0e6db3ed1b1a374b416f40480d92f8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 25 Nov 2020 23:14:13 -0500 Subject: fixed currency refresh issue --- public/admin/model/localisation/currency.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/admin/model/localisation/currency.php b/public/admin/model/localisation/currency.php index 8db7cd7..83b74f2 100644 --- a/public/admin/model/localisation/currency.php +++ b/public/admin/model/localisation/currency.php @@ -138,7 +138,11 @@ class ModelLocalisationCurrency extends Model { $value = utf8_substr($line[$i], 11, 6); if ((float)$value < 1 && isset($line[$i + 1]) && is_numeric(($line[$i + 1]))) { - $value = (1 / utf8_substr($line[$i + 1], 11, 6)); + if((float)utf8_substr($line[$i + 1], 11, 6) > 0) { + $value = (1 / utf8_substr($line[$i + 1], 11, 6)); + } else { + $value = 0; + } } if ((float)$value) { -- cgit v1.2.3