diff --git a/app/Libraries/Utils.php b/app/Libraries/Utils.php index 3447e81f538d..e5644e224c51 100644 --- a/app/Libraries/Utils.php +++ b/app/Libraries/Utils.php @@ -369,9 +369,7 @@ class Utils public static function formatMoney($value, $currencyId = false, $countryId = false, $showCode = false) { - if (!$value) { - $value = 0; - } + $value = floatval($value); if (!$currencyId) { $currencyId = Session::get(SESSION_CURRENCY, DEFAULT_CURRENCY);