diff --git a/include/dba.php b/include/dba.php index c0617af8e8..478a1a10c2 100644 --- a/include/dba.php +++ b/include/dba.php @@ -427,7 +427,12 @@ class dba { } foreach ($args AS $param => $value) { - $stmt->bindParam($param, $args[$param]); + if (is_int($args[$param])) { + $data_type = PDO::PARAM_INT; + } else { + $data_type = PDO::PARAM_STR; + } + $stmt->bindParam($param, $args[$param], $data_type); } if (!$stmt->execute()) {