aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-02-11 21:25:55 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-02-11 21:25:55 -0500
commit218f9357a9dd257ec7ddb2162234b483589d9164 (patch)
treeeab84dc5ea0e8b8debae34f67694696c7c50dbc6 /config
parentf14ee040839ffd2f19aba114d81bec23eda865da (diff)
downloadpfsense-packages-218f9357a9dd257ec7ddb2162234b483589d9164.tar.gz
pfsense-packages-218f9357a9dd257ec7ddb2162234b483589d9164.tar.bz2
pfsense-packages-218f9357a9dd257ec7ddb2162234b483589d9164.zip
Test for variable
Diffstat (limited to 'config')
-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;
+ }
}
}