diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 79a1207f5b..c35480c9c9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-11-29 Ramon Novoa + + * include/functions_netflow.php: Detect errors when retrieving stats. + 2012-11-29 Juan Manuel Ramon * include/functions_ui.php diff --git a/pandora_console/include/functions_netflow.php b/pandora_console/include/functions_netflow.php index 5dd0989400..ba719d5462 100644 --- a/pandora_console/include/functions_netflow.php +++ b/pandora_console/include/functions_netflow.php @@ -492,6 +492,9 @@ function netflow_get_stats ($start_date, $end_date, $filter, $aggregate, $max, $ $end_date = strtotime ($date." ".$time); $values[$i]['datetime'] = $end_date; $values[$i]['agg'] = $val[4]; + if (! isset ($val[7])) { + return array (); + } switch ($unit){ case "flows":