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

This commit is contained in:
scyrma 2008-03-14 08:22:16 +00:00
parent 6b036b3d15
commit 4dda78aecd

View File

@ -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);
}