diff options
| author | astaf <astaf@proxy.ccwn.org.ccwn.org> | 2013-05-17 13:03:26 +0200 |
|---|---|---|
| committer | astaf <astaf@proxy.ccwn.org.ccwn.org> | 2013-05-17 13:03:26 +0200 |
| commit | 79c88ea008f5cf34fc77a05fa2059e63298b223f (patch) | |
| tree | e352c5a35ac8cb1e0795b82e36467d77856236bf /protected/components/Format.php | |
| parent | a96e3f0a649b5331a7d76124d37c0b6907abcc4b (diff) | |
| parent | d194c328d395547e091195e867dc5e45c62f016f (diff) | |
Merge branch 'master' of ssh://proxy:9044/home/ccwn/git-repos/admin.astaf.de
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); } |
