summaryrefslogtreecommitdiffstats
path: root/whineatnews.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-06-03 06:24:08 +0200
committerlpsolit%gmail.com <>2005-06-03 06:24:08 +0200
commit79885c830264013233f695b8b66f879ab640bc01 (patch)
tree4ebcb9099a0dde731afadf3114e7d5310729fb6b /whineatnews.pl
parent334aebead60d1006d4591ac31eeca84d82e60e9b (diff)
downloadbugzilla-79885c830264013233f695b8b66f879ab640bc01.tar.gz
bugzilla-79885c830264013233f695b8b66f879ab640bc01.tar.xz
Bug 295213: whine mail still goes out even though whinedays = "0" - Patch by Marc Schumann <wurblzap@gmail.com> r=LpSolit a=myk
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 " .