diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 05:00:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 05:00:07 +0000 |
commit | af98cced4420801095daf39003c29e33cc1d8474 (patch) | |
tree | c0eaaa61e92d4aaba3d70110bd77277a246ebc54 /usr | |
parent | f2366cc0ad526694f27d169194db34f5052c7d4c (diff) | |
download | pfsense-af98cced4420801095daf39003c29e33cc1d8474.zip pfsense-af98cced4420801095daf39003c29e33cc1d8474.tar.gz |
Do not show the LAN interface when it does not exist.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_captiveportal.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php index 92b3a98..f024c87 100755 --- a/usr/local/www/services_captiveportal.php +++ b/usr/local/www/services_captiveportal.php @@ -278,7 +278,11 @@ function enable_change(enable_change) { <td width="22%" valign="top" class="vncellreq">Interface</td> <td width="78%" class="vtable"> <select name="cinterface" class="formselect" id="cinterface"> - <?php $interfaces = array('lan' => 'LAN'); + <?php + if($config['interfaces']['lan']) + $interfaces = array('lan' => 'LAN'); + else + $interfaces = array(); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { if (isset($config['interfaces']['opt' . $i]['enable'])) $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; |