Skip to content
Browse files

MDL-13236 fixes a regression - thanks to Steve Wright for the patch.

  • Loading branch information...
1 parent 098a9ff commit 892174bda53923e90beda9d9fc762b303826619a scyrma committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 mod/forum/lib.php
@@ -3799,7 +3799,7 @@ function forum_user_has_posted_discussion($forumid, $userid) {
$sql = "SELECT 'x'
FROM {$CFG->prefix}forum_discussions d, {$CFG->prefix}forum_posts p
- WHERE d.forum = $forumid AND p.discussion = d.id AND p.parent = 0";
+ WHERE d.forum = $forumid AND p.discussion = d.id AND p.parent = 0 and p.userid = $userid";
return record_exists_sql($sql);
}

0 comments on commit 892174b

Please sign in to comment.
Something went wrong with that request. Please try again.