mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix an issue with bills with no data (#10009)
Still gets a an error message when graphing, but it better relates to what the issue is.
This commit is contained in:
@@ -293,7 +293,7 @@ function getBillingBitsGraphData($bill_id, $from, $to, $reducefactor)
|
||||
}
|
||||
}//end foreach
|
||||
|
||||
if (isset($iter_in)) { // Write last element
|
||||
if (!empty($iter_in)) { // Write last element
|
||||
$out_data[$i] = round(($iter_out / $iter_period), 2);
|
||||
$in_data[$i] = round(($iter_in / $iter_period), 2);
|
||||
$tot_data[$i] = ($out_data[$i] + $in_data[$i]);
|
||||
|
Reference in New Issue
Block a user