summaryrefslogtreecommitdiff
path: root/protected/components
diff options
context:
space:
mode:
authorastaf <astaf@proxy.ccwn.org.ccwn.org>2013-06-20 20:42:13 +0200
committerastaf <astaf@proxy.ccwn.org.ccwn.org>2013-06-20 20:42:13 +0200
commit1489c096b805f34cd96c18c21ec649c52ef021b9 (patch)
tree86c3a095e7a36d9d927e08826edd48a2fe522b90 /protected/components
parentabbb5cf76066dcc304370c4587bfb55545ca4a40 (diff)
Stand Produktion
Diffstat (limited to 'protected/components')
-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);
}