summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_firewall.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-16 18:41:25 +0000
committerErmal <eri@pfsense.org>2010-04-16 18:41:25 +0000
commitf691243dac0bb4c4a322154ef839cac0d0c5db4e (patch)
treec19b7f27fd6e228c9d69a5bcab51fe01710fcb11 /usr/local/www/system_advanced_firewall.php
parent38b357bdb50b820d63646d49849b41b4908a744d (diff)
downloadpfsense-f691243dac0bb4c4a322154ef839cac0d0c5db4e.zip
pfsense-f691243dac0bb4c4a322154ef839cac0d0c5db4e.tar.gz
Do not use the presence of lan as an indicator of having only one interface. Actually deduce that from the count of interfaces. It is perfectly legal on 2.0 to not have a lan interface and only opt/wan ones.
Diffstat (limited to 'usr/local/www/system_advanced_firewall.php')
-rw-r--r--usr/local/www/system_advanced_firewall.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php
index d9db0fb..06e2ff5 100644
--- a/usr/local/www/system_advanced_firewall.php
+++ b/usr/local/www/system_advanced_firewall.php
@@ -287,7 +287,7 @@ function update_description(itemnum) {
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
- <?php if($config['interfaces']['lan']): ?>
+ <?php if(count($config['interfaces']) > 1): ?>
<tr>
<td colspan="2" valign="top" class="listtopic">Network Address Translation</td>
</tr>
OpenPOWER on IntegriCloud