mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
VolatileStateResults: Properly handle missing host details
This commit is contained in:
parent
29d7f4b3c7
commit
20212a0f87
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ class VolatileStateResults extends ResultSet
|
|||
}
|
||||
}
|
||||
|
||||
if ($type === 'service' && $row->host instanceof Host) {
|
||||
if ($type === 'service' && $row->host instanceof Host && isset($row->host->id)) {
|
||||
$hostStates[bin2hex($row->host->id)] = $row->host->state;
|
||||
if (empty($hostStateKeys)) {
|
||||
$hostStateKeys = $row->host->state->getColumns();
|
||||
|
|
|
|||
Loading…
Reference in a new issue