minor fix
Former-commit-id: b100cf9398a52a443f934632794da991ea4f2342
This commit is contained in:
parent
3d71d17440
commit
bc1195e78e
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue