summaryrefslogtreecommitdiffstats
path: root/whine.pl
diff options
context:
space:
mode:
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;