diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 23:23:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 23:23:12 +0000 |
commit | 0cf8f600b268b4266efa369d29334c5708063cf8 (patch) | |
tree | cb206ab7610be9609ddc0547a434f48316ed0428 /usr | |
parent | e6bbd933dde97e75a6f91cad6509bc62ef09d34d (diff) | |
download | pfsense-0cf8f600b268b4266efa369d29334c5708063cf8.zip pfsense-0cf8f600b268b4266efa369d29334c5708063cf8.tar.gz |
Do not show the LAN interface when it is not present.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_virtual_ip_edit.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php index f52529d..6f60469 100755 --- a/usr/local/www/firewall_virtual_ip_edit.php +++ b/usr/local/www/firewall_virtual_ip_edit.php @@ -298,7 +298,11 @@ function typesel_change() { <td width="22%" valign="top" class="vncellreq">Interface</td> <td width="78%" class="vtable"> <select name="interface" class="formselect"> - <?php $interfaces = array('wan' => 'WAN', 'lan' => 'LAN'); + <?php + if($config['interfaces']['lan']) + $interfaces = array('wan' => 'WAN', 'lan' => 'LAN'); + else + $interfaces = array('wan' => 'WAN'); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; } |