Skip to content

Commit

Permalink
Compare it equals
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagotalma committed Apr 24, 2015
1 parent 2199565 commit 815ca6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/db/BaseActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public function markAttributeDirty($name)
public function isAttributeChanged($name)
{
if (isset($this->_attributes[$name], $this->_oldAttributes[$name])) {
return $this->_attributes[$name] !== $this->_oldAttributes[$name];
return $this->_attributes[$name] != $this->_oldAttributes[$name];
} else {
return isset($this->_attributes[$name]) || isset($this->_oldAttributes[$name]);
}
Expand Down

0 comments on commit 815ca6b

Please sign in to comment.