]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a wrinkly prune (cou;dn;t update posts containing quotes)
authormoodler <moodler>
Thu, 8 Jul 2004 14:39:15 +0000 (14:39 +0000)
committermoodler <moodler>
Thu, 8 Jul 2004 14:39:15 +0000 (14:39 +0000)
mod/forum/post.php

index 62934e23f17b408a8cfbdcd2e5fa2e78b447dca1..a7c2adff09a285ed952de5c7605421b3ef48a487 100644 (file)
                 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');
             }