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

This commit is contained in:
m-lopez-f 2016-08-18 10:27:21 +02:00
parent 6a9fd3805a
commit bf41048018
1 changed files with 2 additions and 2 deletions

View File

@ -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(