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.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/protected/components/Format.php b/protected/components/Format.php
index 1be259f..8a80768 100644
--- a/protected/components/Format.php
+++ b/protected/components/Format.php
@@ -1,6 +1,7 @@
<?php
class Format {
public static function currency($value, $currency = 'EUR') {
+ if ($value <=0) { return "?,?? EUR"; }
return Yii::app()->locale->numberFormatter->formatCurrency($value, $currency);
}