From eed3a899482c74b92e2e90e25278beb5582b2aa0 Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Wed, 11 Nov 2015 22:54:21 +0100 Subject: [PATCH] Fix for percentage bars in billing pages. --- html/pages/bill/history.inc.php | 2 +- html/pages/bills/pmonth.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/pages/bill/history.inc.php b/html/pages/bill/history.inc.php index 26a4750b6..6770271c8 100644 --- a/html/pages/bill/history.inc.php +++ b/html/pages/bill/history.inc.php @@ -101,7 +101,7 @@ foreach (dbFetchRows('SELECT * FROM `bill_history` WHERE `bill_id` = ? ORDER BY $total_data $rate_95th $overuse - ".print_percentage_bar(250, 20, $perc, null, 'ffffff', $background['left'], $percent.'%', 'ffffff', $background['right']).' + ".print_percentage_bar(250, 20, $percent, null, 'ffffff', $background['left'], $percent.'%', 'ffffff', $background['right']).' Show details diff --git a/html/pages/bills/pmonth.inc.php b/html/pages/bills/pmonth.inc.php index abac72f00..39f1ff75c 100644 --- a/html/pages/bills/pmonth.inc.php +++ b/html/pages/bills/pmonth.inc.php @@ -60,7 +60,7 @@ foreach (dbFetchRows('SELECT * FROM `bills` ORDER BY `bill_name`') as $bill) { $total_data $rate_95th $overuse - ".print_percentage_bar(250, 20, $perc, null, 'ffffff', $background['left'], $percent.'%', 'ffffff', $background['right']).' + ".print_percentage_bar(250, 20, $percent, null, 'ffffff', $background['left'], $percent.'%', 'ffffff', $background['right']).' '; $i++;