mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 14:57:23 +08:00
Fixes #622.
This commit is contained in:
@@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user