diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2013-05-17 13:03:36 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2013-05-17 13:03:36 +0200 |
| commit | d194c328d395547e091195e867dc5e45c62f016f (patch) | |
| tree | c08e4bb8647122ba67a97fd57c901f376817413a /protected/components/Format.php | |
| parent | ece6f5daab3a06f339302bae4c34fae225e02f8a (diff) | |
Preis optional, Admin Passwort gilt für alle User
Diffstat (limited to 'protected/components/Format.php')
| -rw-r--r-- | protected/components/Format.php | 3 |
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); } |
