aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-04-24 10:13:07 -0300
committerMarcello Coutinho <marcellocoutinho@gmail.com>2012-04-24 10:13:07 -0300
commit648cabce019db43f2fd0dbb8dcda726935718aad (patch)
tree7ed9e25a010c4195042874dfe8b67005d5690d52
parentad6e317b8021a653152732fe82a2b6b5ed374297 (diff)
downloadpfsense-packages-648cabce019db43f2fd0dbb8dcda726935718aad.tar.gz
pfsense-packages-648cabce019db43f2fd0dbb8dcda726935718aad.tar.bz2
pfsense-packages-648cabce019db43f2fd0dbb8dcda726935718aad.zip
squid3 - include remote cache array check
-rw-r--r--config/squid-reverse/squid.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/squid-reverse/squid.inc b/config/squid-reverse/squid.inc
index 70127510..16bf4bbb 100644
--- a/config/squid-reverse/squid.inc
+++ b/config/squid-reverse/squid.inc
@@ -943,7 +943,8 @@ EOD;
function squid_resync_upstream() {
global $config;
$conf = "\n#Remote proxies\n";
- foreach ($config['installedpackages']['squidremote']['config'] as $settings){
+ if (is_array($config['installedpackages']['squidremote']['config']))
+ foreach ($config['installedpackages']['squidremote']['config'] as $settings){
if ($settings['enable'] == 'on') {
$conf .= "cache_peer {$settings['proxyaddr']} {$settings['hierarchy']} {$settings['proxyport']} ";
if ($settings['icpport'] == '7')