diff --git a/classes/Format.class.php b/classes/Format.class.php index d47e8fd..215ef30 100644 --- a/classes/Format.class.php +++ b/classes/Format.class.php @@ -52,9 +52,9 @@ class Format { $money = number_format($int/100, ($show_decimals) ? self::$frac_digits : 0, self::$decimal_point, ' '); if ($currency) { - return str_replace(' ', html_entity_decode(' ', ENT_COMPAT, 'UTF-8'), $money) . (($currency) ? ' ' . self::$currency_symbol : ''); + return str_replace(' ', html_entity_decode(' ', ENT_COMPAT, 'UTF-8'), $money) . ' ' . self::$currency_symbol; } else { - return $money . (($currency) ? ' ' . self::$currency_symbol : ''); + return $money; } }