mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-13 16:32:53 -05:00
ServiceNode: getAlias() returns null if host or service alias is null
This commit is contained in:
parent
cbb6b018da
commit
5b4056e1b2
1 changed files with 4 additions and 0 deletions
|
|
@ -65,6 +65,10 @@ class ServiceNode extends MonitoredNode
|
|||
|
||||
public function getAlias()
|
||||
{
|
||||
if ($this->getHostAlias() === null || $this->alias === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->getHostAlias() . ': ' . $this->alias;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue