aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-02-08 11:35:53 +1300
committerthompsa <andy@fud.org.nz>2010-02-08 11:35:53 +1300
commit873104479790c7bafe3525377400cad9ecd928f8 (patch)
tree4e7656a74861703cd32a72c365d54b87592118d7
parent04599c7730f238f1b573dae95db68104bbc4b908 (diff)
downloadpfsense-packages-873104479790c7bafe3525377400cad9ecd928f8.tar.gz
pfsense-packages-873104479790c7bafe3525377400cad9ecd928f8.tar.bz2
pfsense-packages-873104479790c7bafe3525377400cad9ecd928f8.zip
Clear the listener before searching for it.
-rwxr-xr-xconfig/haproxy-dev/haproxy_pools.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/config/haproxy-dev/haproxy_pools.php b/config/haproxy-dev/haproxy_pools.php
index 0242d514..fbbb05b0 100755
--- a/config/haproxy-dev/haproxy_pools.php
+++ b/config/haproxy-dev/haproxy_pools.php
@@ -108,19 +108,21 @@ include("head.inc");
<td width="30%" class="listhdrr">Listener</td>
<td width="10%" class="list"></td>
</tr>
- <?php $i = 0; foreach ($a_pools as $pool): ?>
+ <?php $i = 0; foreach ($a_pools as $pool):
+
+ foreach ($a_backends as $backend) {
+ unset($listener);
+ if($backend['pool'] == $pool['name']) {
+ $listener = $backend;
+ }
+ }
+ ?>
<tr>
<td class="listlr" ondblclick="document.location='haproxy_pool_edit.php?id=<?=$i;?>';">
<?=$pool['name'];?>
</td>
<td class="listlr" ondblclick="document.location='haproxy_pool_edit.php?id=<?=$i;?>';">
<?php
- foreach ($a_backends as $backend) {
- if($backend['pool'] == $pool['name']) {
- $listener = $backend;
- }
- }
-
if (is_array($listener)) {
if ($listener['extaddr'])
echo $listener['extaddr'];