diff options
author | lpsolit%gmail.com <> | 2006-02-03 04:04:03 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-02-03 04:04:03 +0100 |
commit | 4c2d4f95543c038d05ff3766a8dbe2b65d49ae4e (patch) | |
tree | dbd308d37a51572d61e08ec8e89e448c4cdcbd57 | |
parent | 33aa3086e79b60a7b4a55070ce09c1eb9eb0059a (diff) | |
download | bugzilla-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
-rwxr-xr-x | editwhines.cgi | 4 | ||||
-rwxr-xr-x | whine.pl | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/editwhines.cgi b/editwhines.cgi index 49acb94ff..8086862d2 100755 --- a/editwhines.cgi +++ b/editwhines.cgi @@ -220,8 +220,8 @@ if ($cgi->param('update')) { else { my $o_day = $cgi->param("orig_day_$sid") || ''; my $day = $cgi->param("day_$sid") || ''; - my $o_time = $cgi->param("orig_time_$sid") || ''; - my $time = $cgi->param("time_$sid") || ''; + my $o_time = $cgi->param("orig_time_$sid") || 0; + my $time = $cgi->param("time_$sid") || 0; my $o_mailto = $cgi->param("orig_mailto_$sid") || ''; my $mailto = $cgi->param("mailto_$sid") || ''; my $o_mailto_type = $cgi->param("orig_mailto_type_$sid") || 0; @@ -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; |