Update functions_post.php

This commit is contained in:
Roman Kelesidis 2024-01-26 16:18:58 +07:00
parent 124facc774
commit bdd9939e3c

View File

@ -224,6 +224,7 @@ 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 = '';