From bf410480186a9253842c085d24a764c3d537d71c Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 18 Aug 2016 10:27:21 +0200 Subject: [PATCH] Fixed simple graph in custom report. Don't create a simple graph without avg --- pandora_console/include/functions_reporting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index d6bd7c3758..4bc23e1d4e 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -4432,8 +4432,8 @@ function reporting_simple_graph($report, $content, $type = 'dinamic', $only_avg = true; // Due to database compatibility problems, the 'only_avg' value // is stored into the json contained into the 'style' column. - if (isset($style['only_avg'])) { - $only_avg = (bool) $style['only_avg']; + if (isset($content['style']['only_avg'])) { + $only_avg = (bool) $content['style']['only_avg']; } $moduletype_name = modules_get_moduletype_name(