From a2ca477414531cb9117c535b9149c889329a5fe6 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Thu, 2 Feb 2006 19:09:01 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20325361:=20When=20an=20event=20is=20schedu?= =?UTF-8?q?led=20at=20midnight=20of=20a=20given=20day=20of=20the=20month,?= =?UTF-8?q?=20one=20email=20is=20sent=20*each*=20hour=20of=20that=20day=20?= =?UTF-8?q?-=20Patch=20by=20Fr=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dwicked=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@188763 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/editwhines.cgi | 4 ++-- mozilla/webtools/bugzilla/whine.pl | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/editwhines.cgi b/mozilla/webtools/bugzilla/editwhines.cgi index 49acb94ff15..8086862d241 100755 --- a/mozilla/webtools/bugzilla/editwhines.cgi +++ b/mozilla/webtools/bugzilla/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; diff --git a/mozilla/webtools/bugzilla/whine.pl b/mozilla/webtools/bugzilla/whine.pl index b001957dda9..5a04502ac9c 100755 --- a/mozilla/webtools/bugzilla/whine.pl +++ b/mozilla/webtools/bugzilla/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;