1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

[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

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';
}