X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdba.php;h=478a1a10c2d40e673298121290f26676e3878321;hb=759dfe6bb1b03a80ebabe92d89eb55ab3081abad;hp=c0617af8e83524b74b7298ded87bbe68faac0c4d;hpb=97e95473a1f4d748e9f61f4d430a68bfedeae222;p=friendica.git 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()) {