From: Michael Date: Thu, 21 Jun 2018 21:55:43 +0000 (+0000) Subject: Better float detection X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1e28ba7c3a97fc06ca46486cd6bcebb45b71ff7;p=friendica.git Better float detection --- 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; }