mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fixed dotted topics on reply
git-svn-id: file:///svn/phpbb/trunk@5087 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9c2cde7dfd
commit
261e79c920
1 changed files with 3 additions and 2 deletions
|
@ -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";
|
||||||
|
@ -1826,4 +1827,4 @@ function page_footer()
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue