#11320 fixed pdf histogram
This commit is contained in:
parent
ae7c5d8f67
commit
4bf98a82c2
|
@ -15845,6 +15845,11 @@ function reporting_module_histogram_graph($report, $content, $pdf=0)
|
|||
];
|
||||
|
||||
$width_graph = 100;
|
||||
if ($metaconsole_on && $server_name != '') {
|
||||
// Restore db connection.
|
||||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
if (empty($array_result) === false) {
|
||||
$return['chart'] = flot_slicesbar_graph(
|
||||
$array_result,
|
||||
|
@ -15871,11 +15876,6 @@ function reporting_module_histogram_graph($report, $content, $pdf=0)
|
|||
$return['chart'] = graph_nodata_image(['height' => $height_graph]);
|
||||
}
|
||||
|
||||
if ($metaconsole_on && $server_name != '') {
|
||||
// Restore db connection.
|
||||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
return reporting_check_structure_content($return);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue