[ticket/17029] Treat deleting post as last post when id is bigger

PHPBB3-17029
This commit is contained in:
Marc Alexander 2023-08-15 11:07:10 +02:00
parent facd14b47e
commit 2563561663
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -1345,7 +1345,7 @@ function delete_post($forum_id, $topic_id, $post_id, &$data, $is_soft = false, $
{
$post_mode = 'delete_first_post';
}
else if ($data['topic_last_post_id'] == $post_id)
else if ($data['topic_last_post_id'] <= $post_id)
{
$post_mode = 'delete_last_post';
}