summaryrefslogtreecommitdiff
path: root/protected/components/Format.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/components/Format.php')
-rw-r--r--protected/components/Format.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/protected/components/Format.php b/protected/components/Format.php
index de92043..67ae71e 100644
--- a/protected/components/Format.php
+++ b/protected/components/Format.php
@@ -1,6 +1,9 @@
<?php
class Format {
public static function currency($value, $currency = 'EUR') {
+ if ($value <=0) {
+ return "?,?? €";
+ }
return Yii::app()->locale->numberFormatter->formatCurrency($value, $currency);
}