Fixed problem with the module graph type line in the public visual console

This commit is contained in:
Daniel Maya 2017-03-15 11:43:13 +01:00
parent 025b8329ea
commit f00cf520ce
1 changed files with 5 additions and 1 deletions

View File

@ -573,7 +573,11 @@ function line_graph($flash_chart, $chart_data, $width, $height, $color,
$graph['percentil'] = $percentil_values;
$id_graph = serialize_in_temp($graph, null, $ttl);
return "<img src='" . $homeurl . "include/graphs/functions_pchart.php?static_graph=1&graph_type=line&ttl=".$ttl."&id_graph=" . $id_graph . "' />";
if(empty($homeurl)){
return "<img src='" . ui_get_full_url (false, false, false, false) . "include/graphs/functions_pchart.php?static_graph=1&graph_type=line&ttl=".$ttl."&id_graph=" . $id_graph . "' />";
}else{
return "<img src='" . $homeurl . "include/graphs/functions_pchart.php?static_graph=1&graph_type=line&ttl=".$ttl."&id_graph=" . $id_graph . "' />";
}
}
}