mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Correct variable use in billing (#14533)
This commit is contained in:
@@ -107,8 +107,8 @@ function getLastMeasurement($bill_id)
|
||||
$row = dbFetchRow('SELECT timestamp,delta,in_delta,out_delta FROM bill_data WHERE bill_id = ? ORDER BY timestamp DESC LIMIT 1', [$bill_id]);
|
||||
if (! is_null($row)) {
|
||||
$return['delta'] = $row['delta'];
|
||||
$return['delta_in'] = $row['delta_in'];
|
||||
$return['delta_out'] = $row['delta_out'];
|
||||
$return['in_delta'] = $row['in_delta'];
|
||||
$return['out_delta'] = $row['out_delta'];
|
||||
$return['timestamp'] = $row['timestamp'];
|
||||
$return['state'] = 'ok';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user