Minor fixes (#133)

This commit is contained in:
Roman Kelesidis 2023-04-05 16:14:34 +07:00 committed by GitHub
parent 07dd40b399
commit 7ae996c6e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,7 +389,14 @@ elseif ( ($submit || $confirm) && !$topic_has_new_posts )
case 'delete':
require_once(INC_DIR .'functions_admin.php');
delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id);
if (!$post_data['first_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;
}