projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9e5839
)
PHP 8 rerun of number_format fix.
author
Joe
<joe.hunt.consulting@gmail.com>
Thu, 16 May 2024 08:07:55 +0000
(10:07 +0200)
committer
Joe
<joe.hunt.consulting@gmail.com>
Thu, 16 May 2024 08:07:55 +0000
(10:07 +0200)
includes/current_user.inc
patch
|
blob
|
history
diff --git
a/includes/current_user.inc
b/includes/current_user.inc
index c427a2be926af8d100d62cc7eef9d5ec2229d54d..bb7478cd119b348bd8fcd819065b6a9f8d73c7e8 100644
(file)
--- a/
includes/current_user.inc
+++ b/
includes/current_user.inc
@@
-317,7
+317,7
@@
function number_format2($number, $decimals=0)
if($decimals==='max')
$dec = 15 - floor(log10(abs($number)));
else {
- $delta = ($number < 0
.0
? -.0000000001 : .0000000001);
+ $delta = ($number < 0 ? -.0000000001 : .0000000001);
$number += $delta;
$dec = $decimals;
}