aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/SpamCat.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SpamCat.pm b/lib/SpamCat.pm
index d470520..7a160cf 100644
--- a/lib/SpamCat.pm
+++ b/lib/SpamCat.pm
@@ -144,7 +144,7 @@ sub set_count_t {
$q = 'INSERT INTO emails (count, sender) VALUES (?, ?)';
} else {
# Otherwise update the record with the new count.
- $q = 'UPDATE emails SET count = ? modified = CURRENT_TIMESTAMP WHERE sender = ?'
+ $q = 'UPDATE emails SET count = ?, modified = CURRENT_TIMESTAMP WHERE sender = ?'
}
my $sth = $self->{dbh}->prepare($q);
$sth->execute($count, $sender);