Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 892174bda53923e90beda9d9fc762b303826619a 1 parent 098a9ff
scyrma authored
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.