diff --git a/pandora_console/godmode/agentes/planned_downtime.export_csv.php b/pandora_console/godmode/agentes/planned_downtime.export_csv.php index 58a89ac5dd..2ede890294 100644 --- a/pandora_console/godmode/agentes/planned_downtime.export_csv.php +++ b/pandora_console/godmode/agentes/planned_downtime.export_csv.php @@ -112,8 +112,7 @@ $sql = "SELECT * WHERE $where_values ORDER BY type_execution DESC, date_from DESC"; $downtimes = @db_get_all_rows_sql($sql); -html_debug_print($sql); -html_debug_print($downtimes); + if (!empty($downtimes)) { ob_clean(); // Show contentype header diff --git a/pandora_console/operation/reporting/reporting_viewer.php b/pandora_console/operation/reporting/reporting_viewer.php index 03bfbf0227..affefb1b74 100644 --- a/pandora_console/operation/reporting/reporting_viewer.php +++ b/pandora_console/operation/reporting/reporting_viewer.php @@ -63,6 +63,8 @@ $enable_init_date = get_parameter('enable_init_date', 0); $url = "index.php?sec=reporting&sec2=operation/reporting/reporting_viewer&id=$id_report&date=$date&time=$time&pure=$pure"; +$options = array(); + $options['list_reports'] = array('active' => false, 'text' => '' . html_print_image("images/report_list.png", true, array ("title" => __('Report list'))) .'');