Browse Source

Fixes #622.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
dc2843a2d7
  1. 2
      framework/yii/db/ActiveRecord.php

2
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]);
}
}

Loading…
Cancel
Save