MDL-65603 mod_forum: Add check for property existence

This commit is contained in:
Peter 2019-05-15 16:50:49 +08:00
parent 56e9b6d67d
commit d7ddc44fbd

View File

@ -746,7 +746,7 @@ $mformpost->set_data(
'parent' => $post->parent,
'discussion' => $post->discussion,
'course' => $course->id,
'isprivatereply' => $post->isprivatereply
'isprivatereply' => $post->isprivatereply ?? false
) +
$pageparams +