Skip to content

Commit

Permalink
Merge branch 'MDL-33487-22' of git://github.com/danpoltawski/moodle i…
Browse files Browse the repository at this point in the history
…nto MOODLE_22_STABLE
  • Loading branch information
Sam Hemelryk committed Jun 5, 2012
2 parents 882ef2f + 4819f2e commit 928a51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/lib.php
Expand Up @@ -6341,7 +6341,7 @@ function forum_tp_count_discussion_unread_posts($userid, $discussionid) {
'WHERE p.discussion = ? '.
'AND p.modified >= ? AND r.id is NULL';

return $DB->count_records_sql($sql, array($userid, $cutoffdate, $discussionid));
return $DB->count_records_sql($sql, array($userid, $discussionid, $cutoffdate));
}

/**
Expand Down

0 comments on commit 928a51a

Please sign in to comment.