Merge branch 'ent-11320-pdf-histogram-graph-en-metaconsola-no-se-visualiza' into 'develop'

Ent 11320 pdf histogram graph en metaconsola no se visualiza

See merge request artica/pandorafms!5951
This commit is contained in:
Rafael Ameijeiras 2023-05-25 15:02:02 +00:00
commit 1046365aea
1 changed files with 5 additions and 5 deletions

View File

@ -15849,6 +15849,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,
@ -15875,11 +15880,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);
}