aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-11 22:01:34 -0500
committersullrich <sullrich@pfsense.org>2009-12-11 22:01:34 -0500
commit274bca7570966d126b366b38304714f277884651 (patch)
treece37625928dc7f82ac00e509f0747c67ecb32baa /config/haproxy
parentaf35f81f28513a121fc470724406827d727d64f0 (diff)
downloadpfsense-packages-274bca7570966d126b366b38304714f277884651.tar.gz
pfsense-packages-274bca7570966d126b366b38304714f277884651.tar.bz2
pfsense-packages-274bca7570966d126b366b38304714f277884651.zip
Restore selections correctly
Diffstat (limited to 'config/haproxy')
-rwxr-xr-xconfig/haproxy/haproxy_servers_edit.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/config/haproxy/haproxy_servers_edit.php b/config/haproxy/haproxy_servers_edit.php
index a265353d..e1c0aaec 100755
--- a/config/haproxy/haproxy_servers_edit.php
+++ b/config/haproxy/haproxy_servers_edit.php
@@ -209,17 +209,17 @@ function clearcombo(){
<tr>
<td>
<select name="backend<?php echo $tracker; ?>">
- <?php
- $i = 0;
- if (!is_array($config['installedpackages']['haproxy']['ha_backends']['item'])) {
- $config['installedpackages']['haproxy']['ha_backends']['item'] = array();
- }
- $backends = split(" ", $pconfig['backend']);
- foreach($backends as $be)
+ <?php
+ $i = 0;
+ if (!is_array($config['installedpackages']['haproxy']['ha_backends']['item']))
+ $config['installedpackages']['haproxy']['ha_backends']['item'] = array();
+ $backends = split(" ", $pconfig['backend']);
foreach ($a_backend as $backend) {
- ?>
- <option value="<?=$backend['name'];?>" <?php if($backend['name']==$be) echo "SELECTED";?>><?=$backend['name'];?></option>
- <?php } ?>
+ ?>
+ <option value="<?=$backend['name'];?>" <?php if($backend['name'] == $ww) echo "SELECTED";?>>
+ <?=$backend['name'];?>
+ </option>
+ <?php } ?>
</select>
</td>
<td>