mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-17 21:10:00 +02:00
Merge branch 'prep-release-3.0.10' into develop-olympus
* prep-release-3.0.10: [ticket/10497] Fix SQL error when guest visits forum with unread topic
This commit is contained in:
commit
ede3963951
@ -1943,11 +1943,11 @@ function update_forum_tracking_info($forum_id, $forum_last_post_time, $f_mark_ti
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$sql = 'SELECT topic_id
|
$sql = 'SELECT t.topic_id
|
||||||
FROM ' . TOPICS_TABLE . '
|
FROM ' . TOPICS_TABLE . ' t
|
||||||
WHERE forum_id = ' . $forum_id . '
|
WHERE t.forum_id = ' . $forum_id . '
|
||||||
AND topic_last_post_time > ' . $mark_time_forum . '
|
AND t.topic_last_post_time > ' . $mark_time_forum . '
|
||||||
AND topic_moved_id = 0 ' .
|
AND t.topic_moved_id = 0 ' .
|
||||||
$sql_update_unapproved;
|
$sql_update_unapproved;
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user