Correct variable use in billing (#14533)

This commit is contained in:
Jellyfrog
2022-10-28 12:55:37 +02:00
committed by GitHub
parent b90fbcb9bf
commit d5fcf53e01
+2 -2
View File
@@ -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 {