mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-01 12:48:08 +09:00
Fix warning in twig extensions
This commit is contained in:
1 file changed
+3
@@ -252,6 +252,9 @@ function twig_autolink_filter($text)
|
||||
|
||||
function twig_number_filter($number, $decimals = 2, $dec_point = '.', $thousands_sep = '')
|
||||
{
|
||||
if(is_null($number)){
|
||||
$number = '0';
|
||||
}
|
||||
return number_format($number, $decimals, $dec_point, $thousands_sep);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user