summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-11-12 11:44:29 +0000
committerThomas NOEL <tnoel@entrouvert.com>2012-11-12 15:00:02 +0100
commit69fec196d4f2a56c3390769c98e56ce4da292069 (patch)
treef936a0e27846be74339d24bbb9ccc56784ec8274
parenta388261259d2935214a319c2301bd3c8ac9f33d3 (diff)
downloadpfsense-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.php2
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) {
OpenPOWER on IntegriCloud