diff options
author | Jesús <heckyel@hyperbola.info> | 2020-11-25 23:14:13 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-11-25 23:14:13 -0500 |
commit | ce38d74d0e6db3ed1b1a374b416f40480d92f8c0 (patch) | |
tree | 686d98c0d694c4f290ca35976359624d4f977bc7 | |
parent | 1ba813fcd1262e3dc82999142c4c14809eb1c561 (diff) | |
download | librecart-master.tar.lz librecart-master.tar.xz librecart-master.zip |
-rw-r--r-- | public/admin/model/localisation/currency.php | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |