X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffunctions.php;h=b21b98e90a754a042def35c4ba88311c7c1348e9;hp=69477a7dc847bc199728c6894e5948d69559cee1;hb=154687dcd45c5b53e323eaba010eabab5950f876;hpb=463950e83f559d2592cb6466683625cb9edb1da6 diff --git a/inc/functions.php b/inc/functions.php index 69477a7dc8..b21b98e90a 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -785,6 +785,9 @@ function translatePoolType ($type) { // Translates the american decimal dot into a german comma function translateComma ($dotted, $cut = true, $max = '0') { + // First, cast all to double, due to PHP changes + $dotted = (double) $dotted; + // Default is 3 you can change this in admin area "Misc -> Misc Options" if (!isConfigEntrySet('max_comma')) setConfigEntry('max_comma', 3);