diff options
author | Ermal <eri@pfsense.org> | 2012-11-12 11:44:29 +0000 |
---|---|---|
committer | Thomas NOEL <tnoel@entrouvert.com> | 2012-11-12 15:00:02 +0100 |
commit | 69fec196d4f2a56c3390769c98e56ce4da292069 (patch) | |
tree | f936a0e27846be74339d24bbb9ccc56784ec8274 | |
parent | a388261259d2935214a319c2301bd3c8ac9f33d3 (diff) | |
download | pfsense-69fec196d4f2a56c3390769c98e56ce4da292069.zip pfsense-69fec196d4f2a56c3390769c98e56ce4da292069.tar.gz |
Resolves #2679. Correct behaviour when port is null to avoid warnings on error log
-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 fa49563..5138156 100644 --- a/usr/local/www/diag_states_summary.php +++ b/usr/local/www/diag_states_summary.php @@ -103,6 +103,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) { |