mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 09:16:55 +02:00
[ticket/17029] Treat deleting post as last post when id is bigger
PHPBB3-17029
This commit is contained in:
@@ -1345,7 +1345,7 @@ function delete_post($forum_id, $topic_id, $post_id, &$data, $is_soft = false, $
|
|||||||
{
|
{
|
||||||
$post_mode = 'delete_first_post';
|
$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';
|
$post_mode = 'delete_last_post';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user