minor fix

Former-commit-id: 1ccd9e446645362fb9b305a699527c5aa2c20369
This commit is contained in:
fbsanchez 2019-03-22 14:43:55 +01:00
parent bc1195e78e
commit a4c048dd29
1 changed files with 36 additions and 28 deletions

View File

@ -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