mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Fixed null values in tinyint(1) fields returning false
This commit is contained in:
parent
73139b47a8
commit
64c12e6da1
@ -524,7 +524,9 @@ final class database extends \mysqli {
|
||||
$row[$float_field] = (float) $row[$float_field];
|
||||
}
|
||||
foreach($boolean_fields as $boolean_field) {
|
||||
$row[$boolean_field] = (boolean) $row[$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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user