BpNode::getMissingChildren(): Use child name if alias not given

Host/Service alias is optional and null as default
This commit is contained in:
Sukhwinder Dhillon 2023-08-10 10:30:06 +02:00 committed by Johannes Meyer
parent a30f85dbcc
commit 8923476277

View file

@ -277,11 +277,11 @@ class BpNode extends Node
foreach ($this->getChildren() as $child) {
if ($child->isMissing()) {
$missing[$child->getAlias()] = $child;
$missing[$child->getAlias() ?? $child->getName()] = $child;
}
foreach ($child->getMissingChildren() as $m) {
$missing[$m->getAlias()] = $m;
$missing[$m->getAlias() ?? $m->getName()] = $m;
}
}