Permalink
Browse files

Micro optimization on Mysql source

  • Loading branch information...
1 parent 762ebd4 commit 58282c3934e34c58cef19a7549d8971e5d7aee93 @lorenzo lorenzo committed Jul 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/Database/Mysql.php
@@ -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]);
}
}

0 comments on commit 58282c3

Please sign in to comment.