Update functions_post.php

This commit is contained in:
Roman Kelesidis 2024-01-28 12:09:29 +07:00
parent 54b4bb327c
commit da16f4e233

View File

@ -224,7 +224,6 @@ function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_
//
function update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id)
{
$user_id = (int) $user_id; // Cast ID to int
$sign = ($mode == 'delete') ? '- 1' : '+ 1';
$forum_update_sql = "forum_posts = forum_posts $sign";
$topic_update_sql = '';