Skip to content

Commit

Permalink
MDL-28981 fix forum_user_can_post() call params
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak authored and stronk7 committed Aug 23, 2011
1 parent 3c0b7e9 commit 9a529b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ function forum_make_mail_html($course, $cm, $forum, $discussion, $post, $userfro
}

if (!isset($userto->canpost[$discussion->id])) {
$canreply = forum_user_can_post($forum, $discussion, $userto);
$canreply = forum_user_can_post($forum, $discussion, $userto, $cm, $course);
} else {
$canreply = $userto->canpost[$discussion->id];
}
Expand Down

0 comments on commit 9a529b0

Please sign in to comment.