From f53fc5d4792c5d49b2aa4e451a14700bb1258c1e Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 31 Aug 2016 12:21:54 +0300 Subject: [PATCH] Fix for formatMoney --- app/Libraries/Utils.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);