diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-02-09 04:03:50 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-02-09 04:03:50 +0000 |
commit | 7131d92eed4a92c3a12482f7ceced36c029596fe (patch) | |
tree | 3536aabd1564dd7e0621f8afc891c646634760a2 /usr | |
parent | ca8869d90cd8b769a988cf218962beb3773452c0 (diff) | |
download | pfsense-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.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 8 |
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"; |