mirror of
https://github.com/sruupl/batflat.git
synced 2026-02-25 20:40:44 +01:00
Fixed a bug with decimal values in the inputs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user