Skip to content

Commit

Permalink
money helper fix for decimals with .00
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHoughton committed Jun 24, 2015
1 parent 705bc7d commit ae7b929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion View/Helper/MoneyHelper.php
Expand Up @@ -25,7 +25,7 @@ public function small($number = 0, $currency = 'USD', $options = array()) {

$split = explode('.', $number);

if (!empty($split[1])) {
if (!empty($split[1]) && $split[1] !== '00') {
$options['places'] = 2;
}

Expand Down

0 comments on commit ae7b929

Please sign in to comment.