diff options
-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) { |