Skip to content

Commit

Permalink
"MDL-24851, added DISTINCT statements"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Oct 27, 2010
1 parent fe98384 commit fc98c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -5957,7 +5957,7 @@ function forum_remove_user_tracking($userid, $context) {
if (!is_enrolled($context, $userid)) {
if ($course = $DB->get_record('course', array('id' => $context->instanceid), 'id')) {
// find all forums in which this user has reading tracked
if ($forums = $DB->get_records_sql("SELECT f.id, cm.id as coursemodule
if ($forums = $DB->get_records_sql("SELECT DISTINCT f.id, cm.id as coursemodule
FROM {forum} f,
{modules} m,
{course_modules} cm,
Expand Down

0 comments on commit fc98c3a

Please sign in to comment.