Permalink
Browse files

MDL-24577: Fix mark all posts in this discussion read doesn't work co…

…mpletely correct
  • Loading branch information...
tlevi authored and andrewnicols committed Jun 16, 2011
1 parent 735de1c commit bce6b3c70a44b6f6118c7987d077e39e0e8522a2
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/forum/lib.php
View
@@ -6226,8 +6226,9 @@ function forum_tp_mark_posts_read($user, $postids) {
if ($new) {
list($usql, $new_params) = $DB->get_in_or_equal($new);
- $params = array($user->id, $now, $now, $user->id, $cutoffdate);
+ $params = array($user->id, $now, $now, $user->id);
$params = array_merge($params, $new_params);
+ $params[] = $cutoffdate;
$sql = "INSERT INTO {forum_read} (userid, postid, discussionid, forumid, firstread, lastread)

0 comments on commit bce6b3c

Please sign in to comment.