From 09b42b669a7e5664f53df3ec85ae96b1b18ba777 Mon Sep 17 00:00:00 2001 From: flashwave Date: Tue, 1 Jan 2019 04:56:30 +0100 Subject: [PATCH] Fixed post edit date sometimes getting unset by mod edits, closes #107. --- src/Forum/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forum/post.php b/src/Forum/post.php index 04357a39..901322fb 100644 --- a/src/Forum/post.php +++ b/src/Forum/post.php @@ -39,7 +39,7 @@ function forum_post_update( SET `post_ip` = INET6_ATON(:post_ip), `post_text` = :post_text, `post_parse` = :post_parse, - `post_edited` = IF(:bump, NOW(), NULL) + `post_edited` = IF(:bump, NOW(), `post_edited`) WHERE `post_id` = :post_id '); $updatePost->bindValue('post_id', $postId);