aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index a0530cf463..a8e7033a18 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -694,8 +694,9 @@ function markread($mode, $forum_id = 0, $topic_id = 0, $marktime = false)
// Mark a topic as read
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 . "
- SET mark_time = $current_time
+ SET mark_time = $current_time $track_type
WHERE topic_id = $topic_id
AND user_id = " . $user->data['user_id'] . "
AND mark_time < $current_time";
@@ -1826,4 +1827,4 @@ function page_footer()
exit;
}
-?> \ No newline at end of file
+?>