Update post_mod_comment.php

This commit is contained in:
Roman Kelesidis 2024-03-27 18:50:54 +07:00
parent 1b0e148e44
commit aea496d796

View File

@ -7,7 +7,7 @@ global $lang, $userdata;
$post_id = (int) $this->request['post_id']; $post_id = (int) $this->request['post_id'];
$mc_type = (int) $this->request['mc_type']; $mc_type = (int) $this->request['mc_type'];
$mc_text = (string) $this->request['mc_text']; $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(" $post = DB()->fetch_row("
SELECT SELECT
@ -57,4 +57,4 @@ $this->response['mc_type'] = $mc_type;
$this->response['post_id'] = $post_id; $this->response['post_id'] = $post_id;
$this->response['mc_title'] = sprintf($lang['MC_COMMENT'][$mc_type]['title'], profile_url($userdata)); $this->response['mc_title'] = sprintf($lang['MC_COMMENT'][$mc_type]['title'], profile_url($userdata));
$this->response['mc_text'] = bbcode2html($mc_text); $this->response['mc_text'] = bbcode2html($mc_text);
$this->response['mc_class'] = $mc_class; $this->response['mc_class'] = $mc_class;