1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-08 15:16:58 +02:00

Result: normalize converts FALSE

This commit is contained in:
David Grudl
2015-10-13 14:26:41 +02:00
parent 2d9358e4f7
commit 5b9ffe14ba
2 changed files with 59 additions and 1 deletions

View File

@@ -488,7 +488,7 @@ class DibiResult extends DibiObject implements IDataSource
continue;
}
$value = $row[$key];
if ($value === FALSE || $type === dibi::TEXT) {
if ($type === dibi::TEXT) {
} elseif ($type === dibi::INTEGER) {
$row[$key] = is_float($tmp = $value * 1) ? $value : $tmp;