Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding code to make tests from previous commit pass.

  • Loading branch information...
commit 0b558c6eb0affa6196f03f31221361538181df07 1 parent e7a5143
@markstory markstory authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 cake/libs/view/helpers/number.php
View
10 cake/libs/view/helpers/number.php
@@ -177,10 +177,12 @@ function currency($number, $currency = 'USD', $options = array()) {
}
$options['after'] = null;
} elseif ($number < 1 && $number > -1 ) {
- $multiply = intval('1' . str_pad('', $options['places'], '0'));
- $number = $number * $multiply;
- $options['before'] = null;
- $options['places'] = null;
+ if ($options['after'] !== false) {
+ $multiply = intval('1' . str_pad('', $options['places'], '0'));
+ $number = $number * $multiply;
+ $options['before'] = null;
+ $options['places'] = null;
+ }
} elseif (empty($options['before'])) {
$options['before'] = null;
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.