|
@@ -538,7 +538,7 @@ abstract class Model {
|
|
|
|
|
|
foreach ($this->attributes as $key => $value)
|
|
foreach ($this->attributes as $key => $value)
|
|
{
|
|
{
|
|
- if ( ! isset($this->original[$key]) or $value !== $this->original[$key])
|
|
|
|
|
|
+ if ( ! array_key_exists($key, $this->original) or $value !== $this->original[$key])
|
|
{
|
|
{
|
|
$dirty[$key] = $value;
|
|
$dirty[$key] = $value;
|
|
}
|
|
}
|