Commit cedf480b authored by Nigel McNie's avatar Nigel McNie
Browse files

Check for identicality when setting values, that way '' and 0 are not treated...

Check for identicality when setting values, that way '' and 0 are not treated the same and thus not changed properly.
parent fc2e7172
......@@ -242,7 +242,7 @@ class BlockInstance {
if ($field == 'configdata') {
$value = serialize($value);
}
if ($this->{$field} != $value) {
if ($this->{$field} !== $value) {
// only set it to dirty if it's changed
$this->dirty = true;
$this->{$field} = $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