From dc2843a2d76e35061aac2ca45cbc960124a5fd2a Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sun, 14 Jul 2013 19:03:43 -0400 Subject: [PATCH] Fixes #622. --- framework/yii/db/ActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/db/ActiveRecord.php b/framework/yii/db/ActiveRecord.php index 7a11288..0b413fe 100644 --- a/framework/yii/db/ActiveRecord.php +++ b/framework/yii/db/ActiveRecord.php @@ -594,7 +594,7 @@ class ActiveRecord extends Model if (isset($this->_attributes[$name], $this->_oldAttributes[$name])) { return $this->_attributes[$name] !== $this->_oldAttributes[$name]; } else { - return isset($this->_attributes[$name]) || isset($this->_oldAttributes); + return isset($this->_attributes[$name]) || isset($this->_oldAttributes[$name]); } }