Skip to content

Commit

Permalink
Fixed error caused by code optimizations.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Feb 26, 2011
1 parent 8c7b0f4 commit 7efe153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/model/datasources/dbo_source.php
Expand Up @@ -666,7 +666,7 @@ public function fetchAll($sql, $params = array(), $options = array()) {

if ($this->hasResult()) {
$first = $this->fetchRow();
if ($first !== null) {
if ($first != null) {
$out[] = $first;
}
while ($item = $this->fetchResult()) {
Expand Down Expand Up @@ -2944,7 +2944,7 @@ public function buildColumn($column) {
$length = $column['limit'];
} elseif (isset($real['length'])) {
$length = $real['length'];
} else {
} elseif (isset($real['limit'])) {
$length = $real['limit'];
}
if (isset($length)) {
Expand Down

0 comments on commit 7efe153

Please sign in to comment.