From 9a2b6870fb3cb2a0b63d5d3cf40782a5f1dbe707 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 11 May 2010 13:40:28 -0400 Subject: Do not foreach() unless configured --- config/haproxy/haproxy_servers_edit.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'config/haproxy') diff --git a/config/haproxy/haproxy_servers_edit.php b/config/haproxy/haproxy_servers_edit.php index 5a37e7a2..5c747277 100755 --- a/config/haproxy/haproxy_servers_edit.php +++ b/config/haproxy/haproxy_servers_edit.php @@ -342,13 +342,15 @@ function clearcombo(){ function row_helper() { global $pconfig, $a_backend; $options = ""; - foreach ($a_backend as $backend) { - $options .= "