Fix descartes model for bool var

This commit is contained in:
Your Name 2020-04-09 03:40:37 +02:00
parent 3569baf1a1
commit aa9acdeeba
1 changed files with 9 additions and 0 deletions

View File

@ -64,6 +64,15 @@
{
try
{
//Must convert bool to 1 or 0 because of some strange inconsistent behavior between PHP versions
foreach ($datas as $key => $value)
{
if (is_bool($value))
{
$datas[$key] = (int) $value;
}
}
$query = $this->pdo->prepare($query);
$query->setFetchMode($return_type);
$query->execute($datas);