summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_pppoe.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-09 05:12:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-09 05:12:32 +0000
commitdc22ae4d0f15af72d6b6623c45ca7450ec04236c (patch)
tree657de2dc83ac4169f79d5b47869da4654b0ca80b /usr/local/www/vpn_pppoe.php
parent3afc4db0d81eb2ab8b0e678b02858e49a390252e (diff)
downloadpfsense-dc22ae4d0f15af72d6b6623c45ca7450ec04236c.zip
pfsense-dc22ae4d0f15af72d6b6623c45ca7450ec04236c.tar.gz
Do not show LAN related items when the interfafe does not exist.
Diffstat (limited to 'usr/local/www/vpn_pppoe.php')
-rwxr-xr-xusr/local/www/vpn_pppoe.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/vpn_pppoe.php b/usr/local/www/vpn_pppoe.php
index 6c7c557..97d099c 100755
--- a/usr/local/www/vpn_pppoe.php
+++ b/usr/local/www/vpn_pppoe.php
@@ -298,7 +298,10 @@ function enable_change(enable_over) {
<select name="interface" class="formselect" id="interface">
<?php
- $interfaces = array('lan' => 'LAN', 'wan' => 'WAN');
+ if($config['interfaces']['lan'])
+ $interfaces = array('wan' => 'WAN', 'lan' => 'LAN');
+ else
+ $interfaces = array('wan' => 'WAN');
for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
if (isset($config['interfaces']['opt' . $i]['enable']))
$interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
OpenPOWER on IntegriCloud