From: quix0r Date: Mon, 22 Mar 2010 01:28:38 +0000 (+0000) Subject: Cast added due to API changes in PHP 5.3.1 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;ds=sidebyside;h=90a469bb6638479e074eca6cd0789acfd803066e;p=mailer.git Cast added due to API changes in PHP 5.3.1 --- 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);