From: moodler Date: Thu, 8 Jul 2004 14:39:15 +0000 (+0000) Subject: Fixed a wrinkly prune (cou;dn;t update posts containing quotes) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=13152de4828777003e921cadb14315ae57cc73c3;p=moodle.git Fixed a wrinkly prune (cou;dn;t update posts containing quotes) --- 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'); }