diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-11 22:01:34 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-11 22:01:34 -0500 |
commit | 274bca7570966d126b366b38304714f277884651 (patch) | |
tree | ce37625928dc7f82ac00e509f0747c67ecb32baa | |
parent | af35f81f28513a121fc470724406827d727d64f0 (diff) | |
download | pfsense-packages-274bca7570966d126b366b38304714f277884651.tar.gz pfsense-packages-274bca7570966d126b366b38304714f277884651.tar.bz2 pfsense-packages-274bca7570966d126b366b38304714f277884651.zip |
Restore selections correctly
-rwxr-xr-x | config/haproxy/haproxy_servers_edit.php | 20 |
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> |