mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Update centToFloat.ctp
An additional security patch.
This commit is contained in:
parent
7c63d8b149
commit
7754fa01fb
@ -11,5 +11,8 @@ $transformAmount = $cent;
|
||||
if($cut_places > 0) {
|
||||
$transformAmount = floor($cent / pow(10, $cut_places));
|
||||
}
|
||||
if($cut_places < 0) {
|
||||
$cut_places = 0;
|
||||
}
|
||||
echo $transformAmount / pow(10, $precision - $cut_places);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user