minor fix orphans while no pandora node

Former-commit-id: 5c21ffec17ba10d77921961c6c813b116449d3a0
This commit is contained in:
fbsanchez 2019-03-22 13:02:57 +01:00
parent 4947d2117a
commit 0d301cd8ed
1 changed files with 15 additions and 11 deletions

View File

@ -2002,18 +2002,22 @@ class NetworkMap
);
}
// Add missed edges.
foreach ($orphans as $rel) {
$graph .= $this->createDotEdge(
[
'from' => $rel['id_child'],
'to' => $rel['id_parent'],
]
);
}
if (isset($this->noPandoraNode) === false
|| $this->noPandoraNode == false
) {
// Add missed edges.
foreach ($orphans as $rel) {
$graph .= $this->createDotEdge(
[
'from' => $rel['id_child'],
'to' => $rel['id_parent'],
]
);
}
// Store relationships.
$this->relations = array_merge($edges, $orphans);
// Store relationships.
$this->relations = array_merge($edges, $orphans);
}
// Close dot file.
$graph .= $this->closeDotFile();