DirectorDatafield: do not fail on missing command

refs #712
refs #731
This commit is contained in:
Thomas Gelf 2017-01-19 13:55:59 +01:00
parent 164b5bd93d
commit b08be6ecc0

View File

@ -122,6 +122,9 @@ class DirectorDatafield extends DbObjectWithSettings
try {
/** @var IcingaCommand $command */
$command = $object->getResolvedRelated('check_command');
if ($command === null) {
return;
}
$inherited = $command->vars()->get($varname);
$inheritedFrom = null;