mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
Fixed dotted topics on reply
git-svn-id: file:///svn/phpbb/trunk@5087 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -694,8 +694,9 @@ function markread($mode, $forum_id = 0, $topic_id = 0, $marktime = false)
|
|||||||
// Mark a topic as read
|
// Mark a topic as read
|
||||||
if ($config['load_db_lastread'] || ($config['load_db_track'] && $type == TRACK_POSTED))
|
if ($config['load_db_lastread'] || ($config['load_db_track'] && $type == TRACK_POSTED))
|
||||||
{
|
{
|
||||||
|
$track_type = ($type == TRACK_POSTED ? ', mark_type = ' . $type : '');
|
||||||
$sql = 'UPDATE ' . TOPICS_TRACK_TABLE . "
|
$sql = 'UPDATE ' . TOPICS_TRACK_TABLE . "
|
||||||
SET mark_time = $current_time
|
SET mark_time = $current_time $track_type
|
||||||
WHERE topic_id = $topic_id
|
WHERE topic_id = $topic_id
|
||||||
AND user_id = " . $user->data['user_id'] . "
|
AND user_id = " . $user->data['user_id'] . "
|
||||||
AND mark_time < $current_time";
|
AND mark_time < $current_time";
|
||||||
|
Reference in New Issue
Block a user