Small change in user_accounting.php3
authorkkalev <kkalev>
Mon, 19 May 2003 07:43:51 +0000 (07:43 +0000)
committerkkalev <kkalev>
Mon, 19 May 2003 07:43:51 +0000 (07:43 +0000)
dialup_admin/Changelog
dialup_admin/htdocs/user_accounting.php3

index fa8e15b..46b17fa 100644 (file)
@@ -28,6 +28,7 @@ Ver 1.63:
 * Use $config[sql_usergroup_table] in show_groups.php3
 * Add a config directive general_stats_use_totacct. If set we use the totacct table in the stats page instead of
   radacct
+* Small change in user_accounting.php3
 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
index 37a8229..7fab2a1 100644 (file)
@@ -92,6 +92,8 @@ if ($link){
                        $tr_color='white';
                        $num++;
                        $acct_type = "$row[FramedProtocol]/$row[NASPortType]";
+                       if ($acct_type == '')
+                               $acct_type = '-';
                        $acct_logedin = $row[AcctStartTime];
                        $acct_sessiontime = $row[AcctSessionTime];
                        $acct_sessiontime_sum += $acct_sessiontime;