From 6f957bb6a32357d6a29e4f4f9835ea473fe84429 Mon Sep 17 00:00:00 2001
From: Alejandro Gallardo Escobar <alex@artica.es>
Date: Mon, 19 Jan 2015 18:11:10 +0100
Subject: [PATCH] Error fixes

---
 pandora_console/include/class/Tree.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php
index 868a393696..9f93dc0154 100644
--- a/pandora_console/include/class/Tree.class.php
+++ b/pandora_console/include/class/Tree.class.php
@@ -749,7 +749,7 @@ class Tree {
 
 						// The 'id' parameter will be stored as 'server_id' => 'id'
 						$resultItem['id'] = array();
-						$resultItem['id'][$resultItem['server_id']] = $resultItem['id'];
+						$resultItem['id'][$child['server_id']] = $child['id'];
 
 						// Initialize counters if any of it don't exist
 						if (!isset($resultItem['counters']))