summaryrefslogtreecommitdiff
path: root/protected/components/Format.php
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2013-05-17 13:03:36 +0200
committerPatrick Seeger <pseeger@ccwn.org>2013-05-17 13:03:36 +0200
commitd194c328d395547e091195e867dc5e45c62f016f (patch)
treec08e4bb8647122ba67a97fd57c901f376817413a /protected/components/Format.php
parentece6f5daab3a06f339302bae4c34fae225e02f8a (diff)
Preis optional, Admin Passwort gilt für alle User
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);
}