summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-09 23:23:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-09 23:23:12 +0000
commit0cf8f600b268b4266efa369d29334c5708063cf8 (patch)
treecb206ab7610be9609ddc0547a434f48316ed0428 /usr/local/www/firewall_virtual_ip_edit.php
parente6bbd933dde97e75a6f91cad6509bc62ef09d34d (diff)
downloadpfsense-0cf8f600b268b4266efa369d29334c5708063cf8.zip
pfsense-0cf8f600b268b4266efa369d29334c5708063cf8.tar.gz
Do not show the LAN interface when it is not present.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php6
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'];
}
OpenPOWER on IntegriCloud