Commit 78af4569 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1855 from rittme/patch-1

get_dirty() comparison is not type safe
parents 5dd3ec6f d46e1921
......@@ -517,7 +517,7 @@ abstract class Model {
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment