From e1e28ba7c3a97fc06ca46486cd6bcebb45b71ff7 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 21 Jun 2018 21:55:43 +0000 Subject: [PATCH] Better float detection --- include/dba.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dba.php b/include/dba.php index 6e399e5de4..38760a6c9e 100644 --- a/include/dba.php +++ b/include/dba.php @@ -1309,7 +1309,7 @@ class dba { } // To prevent to round floats we look for them - if (is_float($single_value)) { + if (round($single_value) != (float)$single_value) { $is_float = true; }