Sync: fix properties for IcingaObject instances

This commit is contained in:
Thomas Gelf 2018-05-25 11:45:57 +02:00
parent bd80862153
commit 29bcfff07f
1 changed files with 4 additions and 0 deletions

View File

@ -509,6 +509,10 @@ class Sync
} else { } else {
$object->vars()->$varName = $val; $object->vars()->$varName = $val;
} }
} else {
if ($val !== null) {
$object->set($prop, $val);
}
} }
} else { } else {
if ($val !== null) { if ($val !== null) {