Skip to content

Commit

Permalink
MDL-13180 - stop returning duplicate rows
Browse files Browse the repository at this point in the history
merged from MOODLE_19_STABLE
  • Loading branch information
poltawski committed Jan 26, 2008
1 parent b119a40 commit 29ee928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/forum/lib.php
Expand Up @@ -4459,7 +4459,8 @@ function forum_remove_user_subscriptions($userid, $context) {
FROM {$CFG->prefix}course c,
{$CFG->prefix}forum_subscriptions fs,
{$CFG->prefix}forum f
WHERE c.id = f.course AND f.id = fs.forum AND fs.userid = $userid")) {
WHERE c.id = f.course AND f.id = fs.forum AND fs.userid = $userid
GROUP BY c.id")) {

foreach ($courses as $course) {
$subcontext = get_context_instance(CONTEXT_COURSE, $course->id);
Expand Down

0 comments on commit 29ee928

Please sign in to comment.