summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/load_balancer_virtual_server_edit.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php
index a073e66..f5509b8 100755
--- a/usr/local/www/load_balancer_virtual_server_edit.php
+++ b/usr/local/www/load_balancer_virtual_server_edit.php
@@ -153,8 +153,10 @@ include("head.inc");
<td width="78%" class="vtable" colspan="2">
<select id="pool" name="pool">
<?php
- for ($i = 0; isset($config['load_balancer']['lbpool'][$i]); $i++) {
- echo "<option value=\"{$config['load_balancer']['lbpool'][$i]['name']}\">{$config['load_balancer']['lbpool'][$i]['name']}</option>";
+ if ( $config['load_balancer']['lbpool'][$i]['name'] == $pconfig['pool'] ) {
+ echo "<option value=\"{$pconfig['pool']}\" selected>{$pconfig['pool']}</option>";
+ } else {
+ echo "<option value=\"{$config['load_balancer']['lbpool'][$i]['name']}\">{$config['load_balancer']['lbpool'][$i]['name']}</option>";
}
?>
</select>
OpenPOWER on IntegriCloud