aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid
diff options
context:
space:
mode:
Diffstat (limited to 'packages/squid')
-rw-r--r--packages/squid/squid.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index 44966271..a5121ef0 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -298,7 +298,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))
+ 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'];