#11320 fixed pdf histogram

This commit is contained in:
Daniel Cebrian 2023-05-23 16:27:02 +02:00
parent ae7c5d8f67
commit 4bf98a82c2
1 changed files with 5 additions and 5 deletions

View File

@ -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);
}