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)
{
if (!$value) {
$value = 0;
}
$value = floatval($value);
if (!$currencyId) {
$currencyId = Session::get(SESSION_CURRENCY, DEFAULT_CURRENCY);