summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_bridge_edit.php
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2010-04-11 14:23:50 +0700
committergnhb <gnoahb@gmail.com>2010-04-11 14:23:50 +0700
commit541ba27e484a3eb92671f4787d430f9321e620d8 (patch)
tree70abd70883920ebab5c2ca25f96b05bca8f7c6b7 /usr/local/www/interfaces_bridge_edit.php
parentb4974cf4809b27c995891ff8386564fe10095ae6 (diff)
downloadpfsense-541ba27e484a3eb92671f4787d430f9321e620d8.zip
pfsense-541ba27e484a3eb92671f4787d430f9321e620d8.tar.gz
Fix enable STP checkbox as detailed in http://forum.pfsense.org/index.php/topic,24230.0.html
Diffstat (limited to 'usr/local/www/interfaces_bridge_edit.php')
-rw-r--r--usr/local/www/interfaces_bridge_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_bridge_edit.php b/usr/local/www/interfaces_bridge_edit.php
index aa1ee03..8e77a06 100644
--- a/usr/local/www/interfaces_bridge_edit.php
+++ b/usr/local/www/interfaces_bridge_edit.php
@@ -149,7 +149,7 @@ if ($_POST) {
if (!$input_errors) {
$bridge = array();
$bridge['members'] = implode(',', $_POST['members']);
- $bridge['enablestp'] = isset($_POST['enablestp']);
+ $bridge['enablestp'] = $_POST['enablestp'] ? true : false;
$bridge['descr'] = $_POST['descr'];
$bridge['maxaddr'] = $_POST['maxaddr'];
$bridge['timeout'] = $_POST['timeout'];
@@ -280,7 +280,7 @@ function show_source_port_range() {
<tr style="display:none" id="sprtable1" name="sprtable1">
<td valign="top" class="vncell" align="middle">RSTP/STP </td>
<td class="vtable">
- <input type="checkbox" name="enablestp" id="enablestp" <?php if ($pconfig['enablestp']) echo "selected";?>>
+ <input type="checkbox" name="enablestp" id="enablestp" <?php if ($pconfig['enablestp']) echo "checked";?>>
<span class="vexpl"><strong>Enable spanning tree options for this bridge. </strong></span>
<br/><br/>
<table id="stpoptions" name="stpoptions" border="0" cellpadding="6" cellspacing="0">
OpenPOWER on IntegriCloud