aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard/squidguard_configurator.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/squidGuard/squidguard_configurator.inc')
-rw-r--r--config/squidGuard/squidguard_configurator.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc
index 0100fba4..81f9cd96 100644
--- a/config/squidGuard/squidguard_configurator.inc
+++ b/config/squidGuard/squidguard_configurator.inc
@@ -443,8 +443,11 @@ function squid_reconfigure($remove_only = '')
# update config
if (is_array($conf)) $conf = implode(";", $conf);
- $config['installedpackages']['squid']['config'][0]['custom_options'] = $conf;
- write_config('Update redirector options to squid config.');
+ /* Only update squid options if we have something to do, otherwise this can interfere with squid's default options in a new install. */
+ if (!empty($conf)) {
+ $config['installedpackages']['squid']['config'][0]['custom_options'] = $conf;
+ write_config('Update redirector options to squid config.');
+ }
# resync squid package, if installed
if (function_exists('squid_resync')) {