mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
"MDL-24851, added DISTINCT statements"
This commit is contained in:
parent
fe983847dd
commit
fc98c3aecb
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user