From bcb21f8020f5b886d11aba49bd7b935a6b3cff6f Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 28 Sep 2015 12:35:27 -0400 Subject: Initialize an array before treating it like an array. Fixes #5205 --- config/squid/squid.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'config') diff --git a/config/squid/squid.inc b/config/squid/squid.inc index 5a0946bb..4cfb9af8 100644 --- a/config/squid/squid.inc +++ b/config/squid/squid.inc @@ -926,6 +926,16 @@ EOD; function squid_resync_auth() { global $config, $valid_acls; + if (!is_array($config['installedpackages']['squidauth'])) { + $config['installedpackages']['squidauth']['config'][0] = array(); + } + if (!is_array($config['installedpackages']['squidnac'])) { + $config['installedpackages']['squidnac']['config'][0] = array(); + } + if (!is_array($config['installedpackages']['squid'])) { + $config['installedpackages']['squid']['config'][0] = array(); + } + $settings = $config['installedpackages']['squidauth']['config'][0]; $settingsnac = $config['installedpackages']['squidnac']['config'][0]; $settingsconfig = $config['installedpackages']['squid']['config'][0]; -- cgit v1.2.3