if the comment succeeds, we still want to set the 'user tried to comment' cookie :P

This commit is contained in:
Shish 2012-03-19 20:05:19 +00:00
parent 713c3db01a
commit 58c06893e1

View File

@ -487,6 +487,9 @@ class CommentList extends Extension {
// all checks passed
else {
if($user->is_anonymous()) {
set_prefixed_cookie("nocache", "Anonymous Commenter", time()+60*60*24, "/");
}
$database->Execute(
"INSERT INTO comments(image_id, owner_id, owner_ip, posted, comment) ".
"VALUES(:image_id, :user_id, :remote_addr, now(), :comment)",