mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge 1332d93a13
into b7db1b0844
This commit is contained in:
commit
0232510bdd
1 changed files with 0 additions and 7 deletions
|
@ -2673,13 +2673,6 @@ function phpbb_bump_topic($forum_id, $topic_id, $post_data, $bump_time = false)
|
||||||
// Begin bumping
|
// Begin bumping
|
||||||
$db->sql_transaction('begin');
|
$db->sql_transaction('begin');
|
||||||
|
|
||||||
// Update the topic's last post post_time
|
|
||||||
$sql = 'UPDATE ' . POSTS_TABLE . "
|
|
||||||
SET post_time = $bump_time
|
|
||||||
WHERE post_id = {$post_data['topic_last_post_id']}
|
|
||||||
AND topic_id = $topic_id";
|
|
||||||
$db->sql_query($sql);
|
|
||||||
|
|
||||||
// Sync the topic's last post time, the rest of the topic's last post data isn't changed
|
// Sync the topic's last post time, the rest of the topic's last post data isn't changed
|
||||||
$sql = 'UPDATE ' . TOPICS_TABLE . "
|
$sql = 'UPDATE ' . TOPICS_TABLE . "
|
||||||
SET topic_last_post_time = $bump_time,
|
SET topic_last_post_time = $bump_time,
|
||||||
|
|
Loading…
Add table
Reference in a new issue