Fixed the bug in the generation nodes.
This commit is contained in:
parent
b20828c85d
commit
5659589e01
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue