summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-09 05:00:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-09 05:00:07 +0000
commitaf98cced4420801095daf39003c29e33cc1d8474 (patch)
treec0eaaa61e92d4aaba3d70110bd77277a246ebc54 /usr/local/www/services_captiveportal.php
parentf2366cc0ad526694f27d169194db34f5052c7d4c (diff)
downloadpfsense-af98cced4420801095daf39003c29e33cc1d8474.zip
pfsense-af98cced4420801095daf39003c29e33cc1d8474.tar.gz
Do not show the LAN interface when it does not exist.
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rwxr-xr-xusr/local/www/services_captiveportal.php6
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'];
OpenPOWER on IntegriCloud