2012-11-29 Ramon Novoa <rnovoa@artica.es>
* include/functions_netflow.php: Detect errors when retrieving stats. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7208 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
29fa7fbb6e
commit
97afbc6b82
|
@ -1,3 +1,7 @@
|
|||
2012-11-29 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* include/functions_netflow.php: Detect errors when retrieving stats.
|
||||
|
||||
2012-11-29 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_ui.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":
|
||||
|
|
Loading…
Reference in New Issue