diff options
author | thompsa <andy@fud.org.nz> | 2010-02-08 10:36:58 +1300 |
---|---|---|
committer | thompsa <andy@fud.org.nz> | 2010-02-08 10:36:58 +1300 |
commit | 9ecfb48b82f8e33d8aa2aa5a7828826ddd7a47d3 (patch) | |
tree | b36cd471e623d99b61f54811815c5f0b93d65401 /config/haproxy-dev | |
parent | de3485f52eaed6bc2033b6119a1f85bab5d7bf60 (diff) | |
download | pfsense-packages-9ecfb48b82f8e33d8aa2aa5a7828826ddd7a47d3.tar.gz pfsense-packages-9ecfb48b82f8e33d8aa2aa5a7828826ddd7a47d3.tar.bz2 pfsense-packages-9ecfb48b82f8e33d8aa2aa5a7828826ddd7a47d3.zip |
Initialise ha_backends if null.
Diffstat (limited to 'config/haproxy-dev')
-rwxr-xr-x | config/haproxy-dev/haproxy_pools.php | 3 |
1 files changed, 3 insertions, 0 deletions
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']; |