From 154687dcd45c5b53e323eaba010eabab5950f876 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 22 Mar 2010 01:28:38 +0000 Subject: [PATCH] Cast added due to API changes in PHP 5.3.1 --- inc/functions.php | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5