Merge pull request #32 from michu2k/master

Fixed a bug with decimal values in the inputs
This commit is contained in:
Paweł Klockiewicz
2018-09-30 14:54:18 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -53,3 +53,4 @@ We are looking for human resources, especially translators who will help us reac
* **[Giuseppe Marino](mailto:info@gpmdev.it)** - Italian translation of CMS
* **[Javier Igal](mailto:javier@igal.es)** - Spanish translation of website and CMS
* **[RJ Adriaansen](https://github.com/rjadr)** - Dutch translation of CMS
* **[Komputronika](https://github.com/komputronika)** - Indonesian translation of CMS

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);