Fixed simple graph in custom report. Don't create a simple graph without avg

(cherry picked from commit bf41048018)
This commit is contained in:
m-lopez-f 2016-08-18 10:27:21 +02:00
parent 5b2530721e
commit f2918a2093
1 changed files with 2 additions and 2 deletions

View File

@ -4399,8 +4399,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(