aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rwxr-xr-xconfig/squid3/34/squid.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index 0d22264c..55027430 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -804,8 +804,7 @@ function squid_install_cron($should_install) {
}
$x++;
}
- switch($should_install) {
- case true:
+ if ($should_install) {
$cachedir =($settings['harddisk_cache_location'] ? $settings['harddisk_cache_location'] : '/var/squid/cache');
if ($rotate_job_id < 0) {
$cron_item['command']=($settings['clear_cache']=='on' ? "/usr/local/pkg/swapstate_check.php clean; " : "");
@@ -841,7 +840,7 @@ function squid_install_cron($should_install) {
write_config("Adding Squid Cron Jobs");
}
break;
- case false:
+ } else {
if ($rotate_job_id >= 0) {
unset($config['cron']['item'][$rotate_job_id]);
$need_write = true;