From d7ddc44fbd4461cf1da929ff85120a5f4ce7738d Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 15 May 2019 16:50:49 +0800 Subject: [PATCH] MDL-65603 mod_forum: Add check for property existence --- mod/forum/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 +