diff --git a/library/ajax/post_mod_comment.php b/library/ajax/post_mod_comment.php index 3cc5e0f5..4dcd0530 100644 --- a/library/ajax/post_mod_comment.php +++ b/library/ajax/post_mod_comment.php @@ -7,7 +7,7 @@ global $lang, $userdata; $post_id = (int) $this->request['post_id']; $mc_type = (int) $this->request['mc_type']; $mc_text = (string) $this->request['mc_text']; -if (!$mc_text = prepare_message($mc_text)) $this->ajax_die($lang['EMPTY_MESSAGE']); +if ($mc_type != 0 && !$mc_text = prepare_message($mc_text)) $this->ajax_die($lang['EMPTY_MESSAGE']); $post = DB()->fetch_row(" SELECT @@ -57,4 +57,4 @@ $this->response['mc_type'] = $mc_type; $this->response['post_id'] = $post_id; $this->response['mc_title'] = sprintf($lang['MC_COMMENT'][$mc_type]['title'], profile_url($userdata)); $this->response['mc_text'] = bbcode2html($mc_text); -$this->response['mc_class'] = $mc_class; \ No newline at end of file +$this->response['mc_class'] = $mc_class;