Adding code to make tests from previous commit pass.

This commit is contained in:
Mark Story 2009-12-22 19:12:11 -05:00
parent e7a5143aa9
commit 0b558c6eb0

View file

@ -177,10 +177,12 @@ class NumberHelper extends AppHelper {
}
$options['after'] = null;
} elseif ($number < 1 && $number > -1 ) {
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 {