From 4c2d4f95543c038d05ff3766a8dbe2b65d49ae4e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 3 Feb 2006 03:04:03 +0000 Subject: 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 r=wicked a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- whine.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'whine.pl') 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; -- cgit v1.2.3-24-g4f1b