diff options
author | Ermal <eri@pfsense.org> | 2012-11-12 11:44:29 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-11-12 11:44:29 +0000 |
commit | 3f00208a0851ab37626a1ca39a644846964f6c18 (patch) | |
tree | 80d230d347407ab6b99da55c18ad25d8b45bb60f /usr/local/www | |
parent | 9c59f9626fdf5637532f98bab09317604c43dd27 (diff) | |
download | pfsense-3f00208a0851ab37626a1ca39a644846964f6c18.zip pfsense-3f00208a0851ab37626a1ca39a644846964f6c18.tar.gz |
Resolves #2679. Correct behaviour when port is null to avoid warnings on error log
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/diag_states_summary.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/diag_states_summary.php b/usr/local/www/diag_states_summary.php index 37c4243..3bd554e 100644 --- a/usr/local/www/diag_states_summary.php +++ b/usr/local/www/diag_states_summary.php @@ -118,6 +118,8 @@ function sort_by_ip($a, $b) { } function build_port_info($portarr, $proto) { + if (!portarr) + return ''; $ports = array(); asort($portarr); foreach (array_reverse($portarr, TRUE) as $port => $count) { |