From d33aa424529c46ec941496801786f530f6b916ee Mon Sep 17 00:00:00 2001 From: sullrich Date: Tue, 15 Dec 2009 08:55:48 -0500 Subject: Install all servers --- config/haproxy/haproxy.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/haproxy') 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']} "; -- cgit v1.2.3