From 0a48338fe0fec07e47fbabf5a339f532e7a5c264 Mon Sep 17 00:00:00 2001 From: Zollner Robert Date: Mon, 2 Nov 2015 03:48:12 +0200 Subject: [PATCH] Fix getRates should return in and out average rates /billing-calculate.php depends on these return values. --- includes/billing.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/billing.php b/includes/billing.php index 9e7ef5edce..246d6dfeb4 100644 --- a/includes/billing.php +++ b/includes/billing.php @@ -189,6 +189,8 @@ function getRates($bill_id, $datefrom, $dateto) { $data['total_data_in'] = $mtot_in; $data['total_data_out'] = $mtot_out; $data['rate_average'] = ($mtot / $ptot * 8); + $data['rate_average_in'] = ($mtot_in / $ptot * 8); + $data['rate_average_out'] = ($mtot_out / $ptot * 8); // print_r($data); return ($data);