From 9814a0eda6bcd65af16979bc3359152fb987b3da Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 1 Nov 2004 12:49:04 +0000 Subject: [PATCH] Merged $parent initialisation from stable --- mod/forum/post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod/forum/post.php b/mod/forum/post.php index f0f60bb338..5cae45b581 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -123,6 +123,8 @@ $defaultformat = FORMAT_MOODLE; } + $parent=NULL; // Initialise some things + if (isset($post->error)) { // User is re-editing a failed posting -- 2.39.5