summaryrefslogtreecommitdiffstats
path: root/whine.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-02-03 04:04:03 +0100
committerlpsolit%gmail.com <>2006-02-03 04:04:03 +0100
commit4c2d4f95543c038d05ff3766a8dbe2b65d49ae4e (patch)
treedbd308d37a51572d61e08ec8e89e448c4cdcbd57 /whine.pl
parent33aa3086e79b60a7b4a55070ce09c1eb9eb0059a (diff)
downloadbugzilla-4c2d4f95543c038d05ff3766a8dbe2b65d49ae4e.tar.gz
bugzilla-4c2d4f95543c038d05ff3766a8dbe2b65d49ae4e.tar.xz
Bug 325361: When an event is scheduled at midnight of a given day of the month, one email is sent *each* hour of that day - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
Diffstat (limited to 'whine.pl')
-rwxr-xr-xwhine.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/whine.pl b/whine.pl
index b001957dd..5a04502ac 100755
--- a/whine.pl
+++ b/whine.pl
@@ -564,6 +564,10 @@ sub reset_timer {
$sth->execute($schedule_id);
my ($run_day, $run_time) = $sth->fetchrow_array;
+ # It may happen that the run_time field is NULL or blank due to
+ # a bug in editwhines.cgi when this field was initially 0.
+ $run_time ||= 0;
+
my $run_today = 0;
my $minute_offset = 0;