mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Prevent issue with broken deleting posts (#673)
This commit is contained in:
parent
cac6ad2292
commit
c57752e682
1 changed files with 5 additions and 1 deletions
|
@ -344,7 +344,11 @@ if (($delete || $mode == 'delete') && !$confirm) {
|
|||
break;
|
||||
|
||||
case 'delete':
|
||||
\TorrentPier\Legacy\Post::delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id);
|
||||
if (!$post_data['first_post']) {
|
||||
\TorrentPier\Legacy\Post::delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id);
|
||||
} else {
|
||||
redirect("modcp.php?" . POST_TOPIC_URL . "=$topic_id&mode=delete&sid=" . $userdata['session_id']);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue