mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/17029] Treat deleting post as last post when id is bigger
PHPBB3-17029
This commit is contained in:
parent
facd14b47e
commit
2563561663
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue