summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-11-12 11:44:29 +0000
committerErmal <eri@pfsense.org>2012-11-12 11:44:29 +0000
commit3f00208a0851ab37626a1ca39a644846964f6c18 (patch)
tree80d230d347407ab6b99da55c18ad25d8b45bb60f /usr/local/www
parent9c59f9626fdf5637532f98bab09317604c43dd27 (diff)
downloadpfsense-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.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 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) {
OpenPOWER on IntegriCloud