aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-dev/haproxy.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy-dev/haproxy.inc')
-rw-r--r--config/haproxy-dev/haproxy.inc8
1 files changed, 5 insertions, 3 deletions
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;
+ }
}
}