Skip to content

Commit

Permalink
Micro optimization on Mysql source
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jul 17, 2011
1 parent 762ebd4 commit 58282c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Database/Mysql.php
Expand Up @@ -238,7 +238,7 @@ public function fetchResult() {
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]);
}
}
Expand Down

0 comments on commit 58282c3

Please sign in to comment.