From 11de239b50cb62ae1d0d469ee9501fbccc381f04 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Wed, 8 Oct 2014 16:08:09 +0200 Subject: [PATCH] Fixed an error on the function "reporting_get_planned_downtimes_intervals" --- pandora_console/include/functions_reporting.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index bca1a554c3..47b1714cfd 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -876,6 +876,8 @@ function reporting_get_planned_downtimes_intervals ($id_agent_module, $start_dat require_once ($config['homedir'] . '/include/functions_planned_downtimes.php'); $malformed_planned_downtimes = planned_downtimes_get_malformed(); + if (empty($malformed_planned_downtimes)) + $malformed_planned_downtimes = array(); $sql_downtime = "SELECT DISTINCT(tpd.id), tpd.* FROM tplanned_downtime tpd, tplanned_downtime_agents tpda, tplanned_downtime_modules tpdm, tagente_modulo tam