diff --git a/mod/forum/post.php b/mod/forum/post.php index f8da7328f16..94a13fbf7d2 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -746,7 +746,7 @@ $mformpost->set_data( 'parent' => $post->parent, 'discussion' => $post->discussion, 'course' => $course->id, - 'isprivatereply' => $post->isprivatereply + 'isprivatereply' => $post->isprivatereply ?? false ) + $pageparams +