diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 1904de816c..40b71cbc27 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-08-23 Sergio Martin + + * include/functions_reporting.php: Fixed a null into + foreach in SLA function + 2010-08-23 Sergio Martin * godmode/reporting/visual_console_builder.php: Fixed diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 21741a22f0..c082e5e7ec 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -377,7 +377,7 @@ function get_agentmodule_sla ($id_agent_module, $period = 0, $min_value = 1, $ma // Initialize variables if (empty ($date)) $date = get_system_time (); if ((empty ($period)) OR ($period == 0)) $period = $config["sla_period"]; - + if ($daysWeek === null) $daysWeek = array(); // Limit date to start searching data $datelimit = $date - $period;