aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid3/squid.inc
diff options
context:
space:
mode:
authorMartin Fuchs <mfuchs@pfsense.org>2008-11-17 21:51:51 +0000
committerMartin Fuchs <mfuchs@pfsense.org>2008-11-17 21:51:51 +0000
commit9630abcc91745b88b576b648229bed25a8865cc8 (patch)
tree9e9b7ed8f703334521613cd7c9a5a6286d11691a /packages/squid3/squid.inc
parentae2e3aa5db87b9aebb1b2c3a92386b630f9435b5 (diff)
downloadpfsense-packages-9630abcc91745b88b576b648229bed25a8865cc8.tar.gz
pfsense-packages-9630abcc91745b88b576b648229bed25a8865cc8.tar.bz2
pfsense-packages-9630abcc91745b88b576b648229bed25a8865cc8.zip
Another squid can't accept empty log rotate option
Thanks to dvserg
Diffstat (limited to 'packages/squid3/squid.inc')
-rw-r--r--packages/squid3/squid.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/squid3/squid.inc b/packages/squid3/squid.inc
index e4cb082c..827ce903 100644
--- a/packages/squid3/squid.inc
+++ b/packages/squid3/squid.inc
@@ -299,7 +299,7 @@ function squid_validate_general($post, $input_errors) {
$input_errors[] = "That is not a valid log location dir";
$log_rotate = trim($post['log_rotate']);
- if (!empty($log_rotate) && !is_numeric($log_rotate) or ($log_rotate < 1))
+ if (!empty($log_rotate) && (!is_numeric($log_rotate) or ($log_rotate < 1)))
$input_errors[] = 'You must enter a valid number of days \'Log rotate\' field';
$webgui_port = $config['system']['webgui']['port'];