Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // And if the number of replies already in the thread are less than the maximum thread replies before perma-sage...
- if ($thread_replies =< $board_class->board['maxreplies']) {
- // Bump the thread
- $tc_db->Execute("UPDATE `" . KU_DBPREFIX . "posts` SET `bumped` = '" . time() . "' WHERE `boardid` = " . $board_class->board['id'] . " AND `id` = '" . $thread_replyto . "'");
- }
- if ($thread_replies >= $board_class->board['maxreplies']) {
- // Lock the thread
- $tc_db->Execute("UPDATE `" . KU_DBPREFIX . "posts` SET `locked` = 1 WHERE `id` = ".$thread_replyto." AND `boardid` = " . $board_class->board['id'] . "");
- }
Advertisement
Add Comment
Please, Sign In to add comment