Micro optimization on Mysql source

This commit is contained in:
Jose Lorenzo Rodriguez 2011-07-17 19:23:15 -04:30
parent 762ebd4b93
commit 58282c3934

View file

@ -238,7 +238,7 @@ class Mysql extends DboSource {
foreach ($this->map as $col => $meta) {
list($table, $column, $type) = $meta;
$resultRow[$table][$column] = $row[$col];
if ($type === 'boolean' && !is_null($row[$col])) {
if ($type === 'boolean' && $row[$col] !== null) {
$resultRow[$table][$column] = $this->boolean($resultRow[$table][$column]);
}
}