From 218f9357a9dd257ec7ddb2162234b483589d9164 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 11 Feb 2010 21:25:55 -0500 Subject: Test for variable --- config/haproxy-dev/haproxy.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/haproxy-dev/haproxy.inc b/config/haproxy-dev/haproxy.inc index 4b5bd42b..e6365a7d 100644 --- a/config/haproxy-dev/haproxy.inc +++ b/config/haproxy-dev/haproxy.inc @@ -88,9 +88,11 @@ function haproxy_find_acl($name) { 'mode' => '', 'syntax' => 'src'); } - foreach ($a_acltypes as $acl) { - if ($acl['name'] == $name) - return $acl; + if($a_acltypes) { + foreach ($a_acltypes as $acl) { + if ($acl['name'] == $name) + return $acl; + } } } -- cgit v1.2.3