Oops, typofix.
authorSteinar H. Gunderson <sesse@debian.org>
Mon, 25 Dec 2006 16:29:32 +0000 (17:29 +0100)
committerSteinar H. Gunderson <sesse@debian.org>
Mon, 25 Dec 2006 16:29:32 +0000 (17:29 +0100)
perl/Sesse/pr0n/WebDAV.pm

index ee0280d2eff875c22f369931472eb87e6f3f7f4f..151370c99ad9f164b5d7c63df99f3a986a9d00af 100644 (file)
@@ -466,7 +466,7 @@ EOF
                                        
                                $dbh->do('INSERT INTO images (id,event,uploadedby,takenby,filename) VALUES (?,?,?,?,?);',
                                        undef, $newid, $event, $user, $takenby, $filename);
-                               $dbh->do('UPDATE images SET last_update=CURRENT_TIMESTAMP WHERE event=?',
+                               $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE event=?',
                                        undef, $event);
 
                                # Now save the file to disk
@@ -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 images SET last_update=CURRENT_TIMESTAMP WHERE event=?',
+               $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE event=?',
                        undef, $event)
                        or dberror($r, "Couldn't invalidate cache");
                $r->status(200);