From 9d18fd691058ba54d283bce10d17d5dba854d5d6 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 25 Mar 2015 13:04:11 +0100 Subject: [PATCH] Fixed lost variable. --- pandora_console/include/functions_reporting.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 1c2c5f220f..a1d91fcf2e 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -246,6 +246,8 @@ function reporting_general($report, $content) { $return = array(); $return['type'] = 'general'; + $return['subtype'] = $content['group_by_agent']; + $return['resume'] = $content['show_resume']; if (empty($content['name'])) { $content['name'] = __('General'); @@ -342,7 +344,7 @@ function reporting_general($report, $content) { $return["data"][$ag_name][$mod_name] = null; } else { - if (!is_numeric($value_res)) { + if (!is_numeric($data_res[$key])) { $return["data"][$ag_name][$mod_name] = $data_res[$key]; } else {