From 13152de4828777003e921cadb14315ae57cc73c3 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 8 Jul 2004 14:39:15 +0000 Subject: [PATCH] Fixed a wrinkly prune (cou;dn;t update posts containing quotes) --- mod/forum/post.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mod/forum/post.php b/mod/forum/post.php index 62934e23f1..a7c2adff09 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -359,10 +359,11 @@ error('Could not create new discussion'); } - $post->parent = 0; - $post->subject = $name; + $newpost->id = $post->id; + $newpost->parent = 0; + $newpost->subject = $name; - if (!update_record("forum_posts", $post)) { + if (!update_record("forum_posts", $newpost)) { error('Could not update the original post'); } -- 2.39.5