minor fix
Former-commit-id: 3d00cc3810df66e79ac69a71ee48df1c9c6b326e
This commit is contained in:
parent
64c4514ace
commit
3d71d17440
|
@ -1901,13 +1901,15 @@ class NetworkMap
|
||||||
// Create dot nodes.
|
// Create dot nodes.
|
||||||
$orphans = [];
|
$orphans = [];
|
||||||
foreach ($nodes as $k => $node) {
|
foreach ($nodes as $k => $node) {
|
||||||
if (isset($node['type']) && $node['type'] == NODE_AGENTE
|
if (isset($node['type']) && $node['type'] == NODE_AGENT
|
||||||
|
|| isset($node['type']) && $node['type'] == NODE_MODULE
|
||||||
|| (isset($node['type']) === false
|
|| (isset($node['type']) === false
|
||||||
&& isset($node['id_agente']) === true
|
&& isset($node['id_agente']) === true
|
||||||
&& $node['id_agente'] > 0)
|
&& $node['id_agente'] > 0)
|
||||||
) {
|
) {
|
||||||
// Origin is agent or module.
|
// Origin is agent or module.
|
||||||
if (isset($node['id_agente_modulo']) === true
|
if (isset($node['type']) && $node['type'] == NODE_MODULE
|
||||||
|
|| isset($node['id_agente_modulo']) === true
|
||||||
&& $node['id_agente_modulo'] > 0
|
&& $node['id_agente_modulo'] > 0
|
||||||
) {
|
) {
|
||||||
$k = NODE_MODULE.'_'.$k;
|
$k = NODE_MODULE.'_'.$k;
|
||||||
|
|
Loading…
Reference in New Issue