minor fix
Former-commit-id: 1ccd9e446645362fb9b305a699527c5aa2c20369
This commit is contained in:
parent
bc1195e78e
commit
a4c048dd29
|
@ -1980,6 +1980,7 @@ class NetworkMap
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$this->relations) {
|
||||||
// Search for relations.
|
// Search for relations.
|
||||||
foreach ($this->nodes as $k => $item) {
|
foreach ($this->nodes as $k => $item) {
|
||||||
$target = $this->calculateRelations($k);
|
$target = $this->calculateRelations($k);
|
||||||
|
@ -2007,7 +2008,11 @@ class NetworkMap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$edges = $this->relations;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_array($edges)) {
|
||||||
foreach ($edges as $rel) {
|
foreach ($edges as $rel) {
|
||||||
$graph .= $this->createDotEdge(
|
$graph .= $this->createDotEdge(
|
||||||
[
|
[
|
||||||
|
@ -2016,6 +2021,9 @@ class NetworkMap
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$edges = [];
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($this->noPandoraNode) === false
|
if (isset($this->noPandoraNode) === false
|
||||||
|| $this->noPandoraNode == false
|
|| $this->noPandoraNode == false
|
||||||
|
|
Loading…
Reference in New Issue