Fix for formatMoney

This commit is contained in:
Hillel Coren 2016-08-31 12:21:54 +03:00
parent d61475eb43
commit f53fc5d479

View File

@ -369,9 +369,7 @@ class Utils
public static function formatMoney($value, $currencyId = false, $countryId = false, $showCode = false) public static function formatMoney($value, $currencyId = false, $countryId = false, $showCode = false)
{ {
if (!$value) { $value = floatval($value);
$value = 0;
}
if (!$currencyId) { if (!$currencyId) {
$currencyId = Session::get(SESSION_CURRENCY, DEFAULT_CURRENCY); $currencyId = Session::get(SESSION_CURRENCY, DEFAULT_CURRENCY);