mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed format_money() with empty string as value
This commit is contained in:
parent
23d9a2728b
commit
813b169006
@ -251,6 +251,10 @@ class Utils
|
|||||||
$currency = Currency::find(1);
|
$currency = Currency::find(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$value) {
|
||||||
|
$value = 0;
|
||||||
|
}
|
||||||
|
|
||||||
Cache::add('currency', $currency, DEFAULT_QUERY_CACHE);
|
Cache::add('currency', $currency, DEFAULT_QUERY_CACHE);
|
||||||
|
|
||||||
return $currency->symbol.number_format($value, $currency->precision, $currency->decimal_separator, $currency->thousand_separator);
|
return $currency->symbol.number_format($value, $currency->precision, $currency->decimal_separator, $currency->thousand_separator);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user