aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2005-01-29 13:33:30 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2005-01-29 13:33:30 +0000
commit261e79c920414f5aaa64a37b21cab67662d0b2ef (patch)
tree039b26fb0bb5cb750cd3a731bd9f7eeb1182439f /phpBB/includes
parent9c2cde7dfde6c11616aadbaf519c997ebb56026d (diff)
downloadforums-261e79c920414f5aaa64a37b21cab67662d0b2ef.tar
forums-261e79c920414f5aaa64a37b21cab67662d0b2ef.tar.gz
forums-261e79c920414f5aaa64a37b21cab67662d0b2ef.tar.bz2
forums-261e79c920414f5aaa64a37b21cab67662d0b2ef.tar.xz
forums-261e79c920414f5aaa64a37b21cab67662d0b2ef.zip
Fixed dotted topics on reply
git-svn-id: file:///svn/phpbb/trunk@5087 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-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
+?>