aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2014-04-03 21:23:46 +0200
committerPiBa-NL <pba_2k3@yahoo.com>2014-04-03 21:23:46 +0200
commitf9b4780bec0f2994c93c8cdac5c7646a9b5b6a84 (patch)
tree3bc88a4f9a74894a837844eb5742b94159156628 /config
parent2ba6733c7edfe1d7e1ffa0963bf2ed1d75035e55 (diff)
downloadpfsense-packages-f9b4780bec0f2994c93c8cdac5c7646a9b5b6a84.tar.gz
pfsense-packages-f9b4780bec0f2994c93c8cdac5c7646a9b5b6a84.tar.bz2
pfsense-packages-f9b4780bec0f2994c93c8cdac5c7646a9b5b6a84.zip
haproxy-devel, on a new install a 'corrupted' empty array was created by the configuration conversion process.
Diffstat (limited to 'config')
-rw-r--r--config/haproxy-devel/haproxy.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/haproxy-devel/haproxy.inc b/config/haproxy-devel/haproxy.inc
index 8b7fbb1e..e1cfdbbe 100644
--- a/config/haproxy-devel/haproxy.inc
+++ b/config/haproxy-devel/haproxy.inc
@@ -405,9 +405,8 @@ EOD;
$writeconfigupdate = true;
}
// update config to "haproxy-devel 1.5-dev19 pkg v0.5"
- $a_backends = &$config['installedpackages']['haproxy']['ha_backends']['item'];
- if(is_array($a_backends)) {
- foreach ($a_backends as &$bind) {
+ if(is_array($config['installedpackages']['haproxy']['ha_backends']['item'])) {
+ foreach ($config['installedpackages']['haproxy']['ha_backends']['item'] as &$bind) {
if($bind['httpclose'] && $bind['httpclose'] == "yes" ) {
$bind['httpclose'] = "httpclose";
$writeconfigupdate = true;