From dc22ae4d0f15af72d6b6623c45ca7450ec04236c Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 9 Feb 2008 05:12:32 +0000 Subject: Do not show LAN related items when the interfafe does not exist. --- usr/local/www/load_balancer_pool_edit.php | 5 ++++- usr/local/www/vpn_pppoe.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'usr') diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php index b3957a3..a90b8ae 100755 --- a/usr/local/www/load_balancer_pool_edit.php +++ b/usr/local/www/load_balancer_pool_edit.php @@ -357,7 +357,10 @@ function clearcombo(){ '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']; -- cgit v1.1