From: Steinar H. Gunderson Date: Mon, 25 Dec 2006 20:35:18 +0000 (+0100) Subject: Fix another typo, preventing uploads. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=0da154f826ede0ad490099494c36472822a90260 Fix another typo, preventing uploads. --- diff --git a/perl/Sesse/pr0n/WebDAV.pm b/perl/Sesse/pr0n/WebDAV.pm index 151370c..9d23bb9 100644 --- a/perl/Sesse/pr0n/WebDAV.pm +++ b/perl/Sesse/pr0n/WebDAV.pm @@ -580,7 +580,7 @@ EOF $dbh->do('DELETE FROM images WHERE event=? AND filename=?;', undef, $event, $filename) or dberror($r, "Couldn't remove file"); - $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE event=?', + $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE id=?', undef, $event) or dberror($r, "Couldn't invalidate cache"); $r->status(200);