1
0
mirror of https://github.com/beestat/app.git synced 2025-06-01 04:37:12 -04:00

Fixed null values in tinyint(1) fields returning false

This commit is contained in:
Jon Ziebell 2020-02-08 14:07:14 -05:00
parent 73139b47a8
commit 64c12e6da1

View File

@ -524,8 +524,10 @@ final class database extends \mysqli {
$row[$float_field] = (float) $row[$float_field];
}
foreach($boolean_fields as $boolean_field) {
if($row[$boolean_field] !== null) {
$row[$boolean_field] = (boolean) $row[$boolean_field];
}
}
foreach($json_fields as $json_field) {
$row[$json_field] = json_decode($row[$json_field], true);
}