2010-08-23 Sergio Martin <sergio.martin@artica.es>

* include/functions_reporting.php: Fixed a null into
	foreach in SLA function



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3171 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-08-23 13:33:24 +00:00
parent fe70fed310
commit 2ee9fb2576
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-08-23 Sergio Martin <sergio.martin@artica.es>
* include/functions_reporting.php: Fixed a null into
foreach in SLA function
2010-08-23 Sergio Martin <sergio.martin@artica.es>
* godmode/reporting/visual_console_builder.php: Fixed

View File

@ -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;