From e656d19a27face854a1d1dd5c76875cb5ea2fb30 Mon Sep 17 00:00:00 2001 From: Jesse Dobbelaere Date: Mon, 2 Dec 2019 21:34:05 +0100 Subject: [PATCH] A float should not be using PDO::PARAM_INT --- spoon/database/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spoon/database/database.php b/spoon/database/database.php index 2cbd253..98e8ada 100644 --- a/spoon/database/database.php +++ b/spoon/database/database.php @@ -713,7 +713,7 @@ public function getTables() private function getType($value) { if($value === null) return PDO::PARAM_NULL; - elseif(is_int($value) || is_float($value)) return PDO::PARAM_INT; + elseif(is_int($value)) return PDO::PARAM_INT; return PDO::PARAM_STR; }