Fixed a bug with decimal values in the inputs

This commit is contained in:
michu2k
2018-09-30 12:58:26 +02:00
parent c4239f1a46
commit ac2c9d1c71

View File

@@ -874,7 +874,7 @@ class QueryBuilder
$st = static::$db->prepare($sql);
foreach ($binds as $key => $bind) {
$pdo_param = \PDO::PARAM_STR;
if (is_numeric($bind)) {
if (is_int($bind)) {
$pdo_param = \PDO::PARAM_INT;
}
$st->bindValue($key+1, $bind, $pdo_param);