Permalink
Browse files

MDL-33487 - mod_forum: incorrect param ordering

Thanks to Garret Gengler for spotting it.
  • Loading branch information...
danpoltawski committed Jun 1, 2012
1 parent fbbb4cc commit 4819f2eadd42e52012d8a8e517b3014e9088c8f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
@@ -6284,7 +6284,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 4819f2e

Please sign in to comment.