Merge pull request #1855 from rittme/patch-1

get_dirty() comparison is not type safe
This commit is contained in:
Taylor Otwell 2013-04-04 10:40:18 -07:00
commit 78af4569de
1 changed files with 2 additions and 2 deletions

View File

@ -517,7 +517,7 @@ public function get_dirty()
foreach ($this->attributes as $key => $value)
{
if ( ! array_key_exists($key, $this->original) or $value != $this->original[$key])
if ( ! array_key_exists($key, $this->original) or $value !== $this->original[$key])
{
$dirty[$key] = $value;
}