aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-dev/haproxy_pools.php
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-02-08 10:36:58 +1300
committerthompsa <andy@fud.org.nz>2010-02-08 10:36:58 +1300
commit9ecfb48b82f8e33d8aa2aa5a7828826ddd7a47d3 (patch)
treeb36cd471e623d99b61f54811815c5f0b93d65401 /config/haproxy-dev/haproxy_pools.php
parentde3485f52eaed6bc2033b6119a1f85bab5d7bf60 (diff)
downloadpfsense-packages-9ecfb48b82f8e33d8aa2aa5a7828826ddd7a47d3.tar.gz
pfsense-packages-9ecfb48b82f8e33d8aa2aa5a7828826ddd7a47d3.tar.bz2
pfsense-packages-9ecfb48b82f8e33d8aa2aa5a7828826ddd7a47d3.zip
Initialise ha_backends if null.
Diffstat (limited to 'config/haproxy-dev/haproxy_pools.php')
-rwxr-xr-xconfig/haproxy-dev/haproxy_pools.php3
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'];