2010-05-04 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_reporting.php: fixed in the function
	"get_agentmodule_data_average" prevent to use the var without value.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2662 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-05-04 11:06:59 +00:00
parent 451bcdc5fc
commit 9860502861
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-05-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_reporting.php: fixed in the function
"get_agentmodule_data_average" prevent to use the var without value.
2010-05-04 Sergio Martin <sergio.martin@artica.es>
* include/functions_reporting.php: Added the

View File

@ -59,7 +59,7 @@ function get_agentmodule_data_average ($id_agent_module, $period, $date = 0) {
$total = 0;
$module_interval = get_module_interval ($id_agent_module);
$previous_data = get_previous_data ($id_agent_module, $datelimit);
if ($previous_data !== false) {
if (($previous_data !== false) && (isset($interval_data))) {
array_unshift ($interval_data, $values);
}