mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
minor fix orphans while no pandora node
Former-commit-id: 5c21ffec17ba10d77921961c6c813b116449d3a0
This commit is contained in:
parent
4947d2117a
commit
0d301cd8ed
@ -2002,18 +2002,22 @@ class NetworkMap
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add missed edges.
|
if (isset($this->noPandoraNode) === false
|
||||||
foreach ($orphans as $rel) {
|
|| $this->noPandoraNode == false
|
||||||
$graph .= $this->createDotEdge(
|
) {
|
||||||
[
|
// Add missed edges.
|
||||||
'from' => $rel['id_child'],
|
foreach ($orphans as $rel) {
|
||||||
'to' => $rel['id_parent'],
|
$graph .= $this->createDotEdge(
|
||||||
]
|
[
|
||||||
);
|
'from' => $rel['id_child'],
|
||||||
}
|
'to' => $rel['id_parent'],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Store relationships.
|
// Store relationships.
|
||||||
$this->relations = array_merge($edges, $orphans);
|
$this->relations = array_merge($edges, $orphans);
|
||||||
|
}
|
||||||
|
|
||||||
// Close dot file.
|
// Close dot file.
|
||||||
$graph .= $this->closeDotFile();
|
$graph .= $this->closeDotFile();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user