From 790fc27ccad5a33c603461b31d73fe08205e2f7c Mon Sep 17 00:00:00 2001 From: kkalev Date: Mon, 6 Oct 2003 09:30:17 +0000 Subject: [PATCH] Show correct calculation of the montlhy usage time. --- Changelog | 1 + htdocs/user_admin.php3 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index beacd14..55b58a8 100644 --- a/Changelog +++ b/Changelog @@ -48,6 +48,7 @@ Ver 1.63: it in user_admin if monthly_limit != 'none' or if this directive is set. Based on a report by "apellido jr., wilfredo p" * Add more comments in the admin.conf file +* Show correct calculation of the montlhy usage time. Ver 1.62: * Remove one sql query from user_admin which was not needed. * Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime diff --git a/htdocs/user_admin.php3 b/htdocs/user_admin.php3 index e2eb392..1217aa2 100644 --- a/htdocs/user_admin.php3 +++ b/htdocs/user_admin.php3 @@ -196,7 +196,7 @@ if ($link){ $remaining = $tmp; $log_color = ($remaining) ? 'green' : 'red'; } - if ($config[counter_monthly_calculate_usage] == 'true'){ + if ($monthly_limit != 'none' || $config[counter_monthly_calculate_usage] == 'true'){ $monthly_used = time2str($monthly_used); if ($monthly_limit != 'none' && !$tmp) $monthly_used = "$monthly_used"; -- 2.39.5