From 7efe15393d08b060769aafaec66f8fd98bb3fbf4 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Fri, 25 Feb 2011 20:18:12 -0300 Subject: [PATCH] Fixed error caused by code optimizations. --- cake/libs/model/datasources/dbo_source.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index 0665412bcc3..20a205da93a 100755 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -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()) { @@ -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)) {