This commit is contained in:
Qiang Xue
2013-07-14 19:03:43 -04:00
parent 39f6e00137
commit dc2843a2d7

View File

@@ -594,7 +594,7 @@ class ActiveRecord extends Model
if (isset($this->_attributes[$name], $this->_oldAttributes[$name])) { if (isset($this->_attributes[$name], $this->_oldAttributes[$name])) {
return $this->_attributes[$name] !== $this->_oldAttributes[$name]; return $this->_attributes[$name] !== $this->_oldAttributes[$name];
} else { } else {
return isset($this->_attributes[$name]) || isset($this->_oldAttributes); return isset($this->_attributes[$name]) || isset($this->_oldAttributes[$name]);
} }
} }