Bug #13936

Updated by Jim Pingle over 1 year ago

Attempting to view an and RRD graph of a new database that doesn't yet have data results in a PHP error. 

 Easiest way to make it happen is to reset RRD and then attempt to load a traffic graph for an interface (e.g. WAN) before the script has a chance to run and populate data: 

 PHP ERROR: Type: 1, File: /usr/local/www/rrd_fetch_json.php, Line: 430, Message: Uncaught ValueError: min(): Argument #1 ($value) must contain at least one element in /usr/local/www/rrd_fetch_json.php:430 
 Stack trace: 
 #0 /usr/local/www/rrd_fetch_json.php(430): min(Array) 
 #1 {main} 

 Once the RRD file has data, it's fine.