minor fix

Former-commit-id: b100cf9398a52a443f934632794da991ea4f2342
This commit is contained in:
fbsanchez 2019-03-22 14:30:50 +01:00
parent 3d71d17440
commit bc1195e78e
1 changed files with 5 additions and 4 deletions

View File

@ -1901,16 +1901,17 @@ class NetworkMap
// Create dot nodes.
$orphans = [];
foreach ($nodes as $k => $node) {
if (isset($node['type']) && $node['type'] == NODE_AGENT
|| isset($node['type']) && $node['type'] == NODE_MODULE
if ((isset($node['type']) && $node['type'] == NODE_AGENT
|| isset($node['type']) && $node['type'] == NODE_MODULE)
|| (isset($node['type']) === false
&& isset($node['id_agente']) === true
&& $node['id_agente'] > 0)
) {
// Origin is agent or module.
if (isset($node['type']) && $node['type'] == NODE_MODULE
|| isset($node['id_agente_modulo']) === true
&& $node['id_agente_modulo'] > 0
|| (isset($node['type']) === false
&& isset($node['id_agente_modulo']) === true
&& $node['id_agente_modulo'] > 0)
) {
$k = NODE_MODULE.'_'.$k;
// Origin is module.