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:
ramonn 2012-11-29 18:16:40 +00:00
parent 29fa7fbb6e
commit 97afbc6b82
2 changed files with 7 additions and 0 deletions

View File

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

View File

@ -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":