mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update functions_post.php
This commit is contained in:
parent
124facc774
commit
bdd9939e3c
@ -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)
|
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';
|
$sign = ($mode == 'delete') ? '- 1' : '+ 1';
|
||||||
$forum_update_sql = "forum_posts = forum_posts $sign";
|
$forum_update_sql = "forum_posts = forum_posts $sign";
|
||||||
$topic_update_sql = '';
|
$topic_update_sql = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user