Fixed lost variable.

This commit is contained in:
mdtrooper 2015-03-25 13:04:11 +01:00
parent 085c4521d0
commit 9d18fd6910

View File

@ -246,6 +246,8 @@ function reporting_general($report, $content) {
$return = array(); $return = array();
$return['type'] = 'general'; $return['type'] = 'general';
$return['subtype'] = $content['group_by_agent'];
$return['resume'] = $content['show_resume'];
if (empty($content['name'])) { if (empty($content['name'])) {
$content['name'] = __('General'); $content['name'] = __('General');
@ -342,7 +344,7 @@ function reporting_general($report, $content) {
$return["data"][$ag_name][$mod_name] = null; $return["data"][$ag_name][$mod_name] = null;
} }
else { else {
if (!is_numeric($value_res)) { if (!is_numeric($data_res[$key])) {
$return["data"][$ag_name][$mod_name] = $data_res[$key]; $return["data"][$ag_name][$mod_name] = $data_res[$key];
} }
else { else {