From b99cef8c1aaa9e028d2839d903f17cc2017875ab Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Mon, 19 Jan 2015 14:56:42 +0100 Subject: [PATCH] Fixed an error related with the id retrieving --- pandora_console/include/ajax/tree.ajax.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/ajax/tree.ajax.php b/pandora_console/include/ajax/tree.ajax.php index 6c44b591fb..db0c082596 100644 --- a/pandora_console/include/ajax/tree.ajax.php +++ b/pandora_console/include/ajax/tree.ajax.php @@ -25,14 +25,14 @@ if (is_ajax ()) { require_once($config['homedir'] . "/include/functions_reporting.php"); require_once($config['homedir'] . "/include/functions_os.php"); - $getChildren = (bool)get_parameter('getChildren', 0); - $getGroupStatus = (bool)get_parameter('getGroupStatus', 0); + $getChildren = (bool) get_parameter('getChildren', 0); + $getGroupStatus = (bool) get_parameter('getGroupStatus', 0); $get_detail = (bool) get_parameter('getDetail'); if ($getChildren) { $type = get_parameter('type', 'group'); $filter = get_parameter('filter', array('searchAgent' => '', 'statusAgent' => AGENT_STATUS_ALL)); - $id = (int)get_parameter('id', 0); + $id = get_parameter('id', 0); $childrenMethod = get_parameter('childrenMethod', 'on_demand'); $countModuleStatusMethod = get_parameter('countModuleStatusMethod', 'on_demand'); $countAgentStatusMethod = get_parameter('countAgentStatusMethod', 'live');