From 5e18e85b5de0ae85fac174af3f6f6772b30cde58 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Thu, 6 Nov 2014 17:37:40 +0100 Subject: [PATCH] Fixed the error messages of the planned downtimes queries --- pandora_console/include/functions_reporting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 9c00b0ab87..93cad7bd2c 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -907,7 +907,7 @@ function reporting_get_planned_downtimes_intervals ($id_agent_module, $start_dat ) tpdr ORDER BY tpdr.id"; - $downtimes = db_get_all_rows_sql($sql_downtime); + $downtimes = @db_get_all_rows_sql($sql_downtime); if ($downtimes == false) { $downtimes = array(); @@ -1248,7 +1248,7 @@ function reporting_get_planned_downtimes ($start_date, $end_date, $id_agent_modu OR (date_from <= '$end_date' AND date_to >= '$end_date')))"; } - $downtimes = db_get_all_rows_sql($sql_downtime); + $downtimes = @db_get_all_rows_sql($sql_downtime); if ($downtimes == false) { $downtimes = array(); }