From 9ecfb48b82f8e33d8aa2aa5a7828826ddd7a47d3 Mon Sep 17 00:00:00 2001 From: thompsa Date: Mon, 8 Feb 2010 10:36:58 +1300 Subject: Initialise ha_backends if null. --- config/haproxy-dev/haproxy_pools.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config/haproxy-dev') diff --git a/config/haproxy-dev/haproxy_pools.php b/config/haproxy-dev/haproxy_pools.php index 5b9942b3..0242d514 100755 --- a/config/haproxy-dev/haproxy_pools.php +++ b/config/haproxy-dev/haproxy_pools.php @@ -37,6 +37,9 @@ $d_haproxyconfdirty_path = $g['varrun_path'] . "/haproxy.conf.dirty"; if (!is_array($config['installedpackages']['haproxy']['ha_pools']['item'])) { $config['installedpackages']['haproxy']['ha_pools']['item'] = array(); } +if (!is_array($config['installedpackages']['haproxy']['ha_backends']['item'])) { + $config['installedpackages']['haproxy']['ha_backends']['item'] = array(); +} $a_pools = &$config['installedpackages']['haproxy']['ha_pools']['item']; $a_backends = &$config['installedpackages']['haproxy']['ha_backends']['item']; -- cgit v1.2.3