From 4bf98a82c2396abd1b78aa6c8d2c74919ce9fc66 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Tue, 23 May 2023 16:27:02 +0200 Subject: [PATCH] #11320 fixed pdf histogram --- pandora_console/include/functions_reporting.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 5adae9abf7..e488cdf92e 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -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); }