From d5fcf53e01e53d2e62a419c8048ec3f3991a9119 Mon Sep 17 00:00:00 2001 From: Jellyfrog Date: Fri, 28 Oct 2022 12:55:37 +0200 Subject: [PATCH] Correct variable use in billing (#14533) --- includes/billing.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/billing.php b/includes/billing.php index aebfa8c57f..4075cde5e8 100644 --- a/includes/billing.php +++ b/includes/billing.php @@ -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 {