From f9b4780bec0f2994c93c8cdac5c7646a9b5b6a84 Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Thu, 3 Apr 2014 21:23:46 +0200 Subject: haproxy-devel, on a new install a 'corrupted' empty array was created by the configuration conversion process. --- config/haproxy-devel/haproxy.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'config') 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; -- cgit v1.2.3