From 5659589e0164bf9f036af0bc7c0f92eeaba208fd Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 18 Feb 2016 16:49:11 +0100 Subject: [PATCH] Fixed the bug in the generation nodes. --- pandora_console/include/class/Networkmap.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/class/Networkmap.class.php b/pandora_console/include/class/Networkmap.class.php index 0cf95ecced..e14fa01d8c 100644 --- a/pandora_console/include/class/Networkmap.class.php +++ b/pandora_console/include/class/Networkmap.class.php @@ -127,7 +127,7 @@ class Networkmap extends Map { foreach ($edges as $edge) { $this->nodes[] = array('type' => ITEM_TYPE_EDGE_NETWORKMAP); - $edge['id_item'] = key(end($graph->nodes[])); + $edge['id_item'] = key(end($this->nodes)); $this->edges[] = $edge; } }