Browse files

MDL-33487 - mod_forum: incorrect param ordering

Thanks to Garret Gengler for spotting it.
  • Loading branch information...
1 parent a6dfc10 commit 365f666cbfecdd7269cc47e77433cd3da81bc52f @danpoltawski danpoltawski committed Jun 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 mod/forum/lib.php
@@ -6564,7 +6564,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));
}
/**

0 comments on commit 365f666

Please sign in to comment.