Showing
1 changed file
with
1 additions
and
1 deletions
@@ -190,7 +190,7 @@ class Helpers | @@ -190,7 +190,7 @@ class Helpers | ||
190 | */ | 190 | */ |
191 | public static function transPrice($price) | 191 | public static function transPrice($price) |
192 | { | 192 | { |
193 | - return number_format($price, 2, '.', ''); | 193 | + return !empty($price) ? number_format($price, 2, '.', '') : 0; |
194 | } | 194 | } |
195 | 195 | ||
196 | /** | 196 | /** |
-
Please register or login to post a comment