Permalink
Browse files

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

  • Loading branch information...
scyrma
scyrma committed Mar 14, 2008
1 parent 098a9ff commit 892174bda53923e90beda9d9fc762b303826619a
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
@@ -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.