Skip to content

Commit

Permalink
MDL-24577: Fix mark all posts in this discussion read doesn't work co…
Browse files Browse the repository at this point in the history
…mpletely correct
  • Loading branch information
Tony Levi authored and Sam Hemelryk committed Nov 17, 2011
1 parent 991ee33 commit 165e476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/forum/lib.php
Expand Up @@ -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)
Expand Down

0 comments on commit 165e476

Please sign in to comment.