Skip to content

Commit

Permalink
The property might not exist, make sure we still set $_dirty.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 4, 2013
1 parent 67f3db0 commit 8a8b548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Device.php
Expand Up @@ -97,7 +97,7 @@ public function &__get($property)
*/
public function __set($property, $value)
{
if ($value != $this->_properties[$property]) {
if (!isset($this->_properties[$property]) || $value != $this->_properties[$property]) {
$this->_dirty = true;
$this->_properties[$property] = $value;
}
Expand Down

0 comments on commit 8a8b548

Please sign in to comment.