summaryrefslogtreecommitdiffstats
path: root/whineatnews.pl
diff options
context:
space:
mode:
Diffstat (limited to 'whineatnews.pl')
-rwxr-xr-xwhineatnews.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/whineatnews.pl b/whineatnews.pl
index 286b0c542..16be900ad 100755
--- a/whineatnews.pl
+++ b/whineatnews.pl
@@ -33,6 +33,9 @@ require "globals.pl";
use Bugzilla::BugMail;
+# Whining is disabled if whinedays is zero
+exit unless Param('whinedays') >= 1;
+
my $dbh = Bugzilla->dbh;
SendSQL("SELECT bug_id, short_desc, login_name " .
"FROM bugs INNER JOIN profiles ON userid = assigned_to " .