IcingaObjectInspection: handle NULL checkresult

fixes #1641
This commit is contained in:
Thomas Gelf 2018-09-17 09:15:24 +02:00
parent bf72c81062
commit 76e353c9fb
1 changed files with 2 additions and 2 deletions

View File

@ -38,10 +38,10 @@ class IcingaObjectInspection extends BaseHtmlElement
protected function assemble()
{
$attrs = $this->object->attrs;
if (property_exists($attrs, 'source_location')) {
if (isset($attrs->source_location)) {
$this->renderSourceLocation($attrs->source_location);
}
if (property_exists($attrs, 'last_check_result')) {
if (isset($attrs->last_check_result)) {
$this->renderLastCheckResult($attrs->last_check_result);
}