]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Fix a small bug in user_admin.php3
authorkkalev <kkalev>
Thu, 20 Jun 2002 11:13:56 +0000 (11:13 +0000)
committerkkalev <kkalev>
Thu, 20 Jun 2002 11:13:56 +0000 (11:13 +0000)
Changelog
htdocs/user_admin.php3

index 6598c6335a1c7c8266b86e8b8b651de7cc3e72db..6274fd2120eaaa76c53bd0690ff129cc37c4ea7d 100644 (file)
--- 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).
index b9c74923feefb6d4fb0566b165c575731b5442da..56fed3794ee227654ed403142695bc34e3081d0b 100644 (file)
@@ -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';