aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy/haproxy.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy/haproxy.inc')
-rw-r--r--config/haproxy/haproxy.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc
index d65c2684..3c051034 100644
--- a/config/haproxy/haproxy.inc
+++ b/config/haproxy/haproxy.inc
@@ -208,10 +208,10 @@ function haproxy_configure() {
if(is_array($a_servers)) {
foreach ($a_servers as $server) {
$backends_to_process = split(" ", $server['backend']);
- foreach($backends_to_process as $backend) {
- if($backend == "")
+ foreach($backends_to_process as $backends) {
+ if($backends == "")
continue;
- if($backend ==$backend['name']) {
+ if($backends == $backend['name']) {
if($server['status']=='active') {
if($server['cookie'])
$cookie = " cookie {$server['cookie']} ";