From: kkalev Date: Thu, 20 Jun 2002 11:13:56 +0000 (+0000) Subject: Fix a small bug in user_admin.php3 X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=d96ff108d1c042deef8e9d1e28db4a56655355c4;p=freeradius-dialup-admin.git Fix a small bug in user_admin.php3 --- diff --git a/Changelog b/Changelog index 6598c63..6274fd2 100644 --- a/Changelog +++ b/Changelog @@ -10,6 +10,7 @@ Ver 1.30: * Fix a bug in lib/add_badusers.php3 which did not allow inserts in the badusers table. * Make lib/ldap/password_check.php3 behave properly when it is passed a null password * Allow for daily/weekly/monthly limits to be set to none and show correct results in the show user page +* Fix a small bug in user_admin.php3. Ver 1.29: * Add general_ld_library_path directive and set LD_LIBRARY_PATH accordingly (used in snmpfinger and radaclient). diff --git a/htdocs/user_admin.php3 b/htdocs/user_admin.php3 index b9c7492..56fed37 100644 --- a/htdocs/user_admin.php3 +++ b/htdocs/user_admin.php3 @@ -162,7 +162,7 @@ if ($link){ $lastlog_server_port = $row['NASPortId']; $lastlog_session_time = date2timediv($lastlog_time); if ($daily_limit != 'none'){ - $remaining = $daily_limit - $lastlog_session_time; + $remaining = $remaining - $lastlog_session_time; if ($remaining < 0) $remaining = 0; $log_color = ($remaining) ? 'green' : 'red';