mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-13236 fixes a regression - thanks to Steve Wright for the patch.
This commit is contained in:
parent
6b036b3d15
commit
4dda78aecd
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user