Fixed format_money() with empty string as value

This commit is contained in:
Patrick Samson 2015-06-18 19:30:41 -04:00
parent 23d9a2728b
commit 813b169006

View File

@ -251,6 +251,10 @@ class Utils
$currency = Currency::find(1);
}
if (!$value) {
$value = 0;
}
Cache::add('currency', $currency, DEFAULT_QUERY_CACHE);
return $currency->symbol.number_format($value, $currency->precision, $currency->decimal_separator, $currency->thousand_separator);