mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
minor fix orphans while no pandora node
Former-commit-id: 067f83b5cd8fc87922c61622873b60753edebf2d
This commit is contained in:
parent
80ecb58f8f
commit
64c4514ace
@ -860,7 +860,10 @@ class NetworkMap
|
|||||||
|
|
||||||
// Add also parent relationship.
|
// Add also parent relationship.
|
||||||
$parent_id = NODE_AGENT.'_'.$node['id_parent'];
|
$parent_id = NODE_AGENT.'_'.$node['id_parent'];
|
||||||
$parent_node = $this->nodes[$parent_id]['id_node'];
|
|
||||||
|
if (is_integer($parent_id)) {
|
||||||
|
$parent_node = $this->nodes[$parent_id]['id_node'];
|
||||||
|
}
|
||||||
|
|
||||||
// Store relationship.
|
// Store relationship.
|
||||||
if ($parent_node && $node['id_parent'] > 0) {
|
if ($parent_node && $node['id_parent'] > 0) {
|
||||||
@ -946,7 +949,10 @@ class NetworkMap
|
|||||||
// Handmade ones.
|
// Handmade ones.
|
||||||
// Add also parent relationship.
|
// Add also parent relationship.
|
||||||
$parent_id = $node['id_parent'];
|
$parent_id = $node['id_parent'];
|
||||||
$parent_node = $this->getNodeData($parent_id, 'id_node');
|
|
||||||
|
if (is_integer($parent_id)) {
|
||||||
|
$parent_node = $this->getNodeData($parent_id, 'id_node');
|
||||||
|
}
|
||||||
|
|
||||||
// Store relationship.
|
// Store relationship.
|
||||||
if ($parent_node) {
|
if ($parent_node) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user