diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-13 03:20:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-13 03:20:19 +0000 |
commit | 29282c6b37c34e0ca7c791c0e4de185417a75ba6 (patch) | |
tree | 61aa5bf0293f09debc44d406865001f85e89770a /usr/local | |
parent | 79a586b167a0a490d2dfa2e3c23be84fd31e9897 (diff) | |
download | pfsense-29282c6b37c34e0ca7c791c0e4de185417a75ba6.zip pfsense-29282c6b37c34e0ca7c791c0e4de185417a75ba6.tar.gz |
Do not show blank items and flag for inspection
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index bdbf83f..3055c09 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -130,12 +130,12 @@ function conv_clog($logfile, $tail = 50) { $shouldadd = true; - if($flent['src'] == "") + if(trim($flent['src']) == "") + $shouldadd = false; + if(trim($flent['dst']) == "") + $shouldadd = false; + if(trim($flent['time']) == "") $shouldadd = false; - if($flent['dst'] == "") - $shouldadd = true; - if($flent['time'] == "") - $shouldadd = true; if($shouldadd == true) { $counter++; |