diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 05:12:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 05:12:32 +0000 |
commit | dc22ae4d0f15af72d6b6623c45ca7450ec04236c (patch) | |
tree | 657de2dc83ac4169f79d5b47869da4654b0ca80b /usr/local/www/vpn_pppoe.php | |
parent | 3afc4db0d81eb2ab8b0e678b02858e49a390252e (diff) | |
download | pfsense-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-x | usr/local/www/vpn_pppoe.php | 5 |
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']; |