diff --git a/posting.php b/posting.php index 8ea9cde2..d769ecbc 100644 --- a/posting.php +++ b/posting.php @@ -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; }