summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-02-09 04:03:50 +0000
committerChris Buechler <cmb@pfsense.org>2008-02-09 04:03:50 +0000
commit7131d92eed4a92c3a12482f7ceced36c029596fe (patch)
tree3536aabd1564dd7e0621f8afc891c646634760a2
parentca8869d90cd8b769a988cf218962beb3773452c0 (diff)
downloadpfsense-7131d92eed4a92c3a12482f7ceced36c029596fe.zip
pfsense-7131d92eed4a92c3a12482f7ceced36c029596fe.tar.gz
Don't show LAN in Interfaces drop down if it doesn't actually exist.
Bye bye, LAN interface requirement.
-rwxr-xr-xusr/local/www/firewall_rules_edit.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 840e4e7..2758898 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -486,9 +486,11 @@ include("head.inc");
endif;
$interfaces = array();
-
- if(have_ruleint_access("lan"))
- $interfaces['lan'] = "LAN";
+ if($config['interfaces']['lan']) {
+ /* only add LAN if it exists */
+ if(have_ruleint_access("lan"))
+ $interfaces['lan'] = "LAN";
+ }
if(have_ruleint_access("wan"))
$interfaces['wan'] = "WAN";
OpenPOWER on IntegriCloud