mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding code to make tests from previous commit pass.
This commit is contained in:
parent
e7a5143aa9
commit
0b558c6eb0
1 changed files with 6 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue