Fixed post edit date sometimes getting unset by mod edits, closes #107.

This commit is contained in:
flash 2019-01-01 04:56:30 +01:00
parent af496eec3d
commit 09b42b669a

View file

@ -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);