diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-02-11 21:25:55 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-02-11 21:25:55 -0500 |
commit | 218f9357a9dd257ec7ddb2162234b483589d9164 (patch) | |
tree | eab84dc5ea0e8b8debae34f67694696c7c50dbc6 | |
parent | f14ee040839ffd2f19aba114d81bec23eda865da (diff) | |
download | pfsense-packages-218f9357a9dd257ec7ddb2162234b483589d9164.tar.gz pfsense-packages-218f9357a9dd257ec7ddb2162234b483589d9164.tar.bz2 pfsense-packages-218f9357a9dd257ec7ddb2162234b483589d9164.zip |
Test for variable
-rw-r--r-- | config/haproxy-dev/haproxy.inc | 8 |
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; + } } } |