Permalink
Browse files

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

…mpletely correct
  • Loading branch information...
1 parent 991ee33 commit 165e476948e66ff345b33a0c0000edfc9dc12494 @tlevi tlevi committed with Sam Hemelryk Jun 16, 2011
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 165e476

Please sign in to comment.