diff --git a/mod/forum/post.php b/mod/forum/post.php index 1ff1b7d374d..901477712e5 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -169,9 +169,6 @@ $defaultformat = FORMAT_MOODLE; } - $parent = new stdClass; // Initialise some things - - if (isset($post->error)) { // User is re-editing a failed posting // Set up all the required objects again, and reuse the same $post