]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from MOODLE_14_STABLE: Bug fix for forum rating redirects - manifested itself...
authormjollnir_ <mjollnir_>
Tue, 23 Nov 2004 23:13:52 +0000 (23:13 +0000)
committermjollnir_ <mjollnir_>
Tue, 23 Nov 2004 23:13:52 +0000 (23:13 +0000)
mod/forum/rate.php

index d3ae2bd7e5d0aa0e1cee2ddd1e1bcc7e2ca55725..08ae3cef2e06f838aa742fe652c99b1b2c96c71c 100644 (file)
@@ -54,7 +54,7 @@
                 }
             }
         }
-        if ($post = get_record('forum_posts', 'id', $postid)) {
+        if ($post = get_record('forum_posts', 'id', $id)) {
             if ($returntoview and ($discussion = get_record('forum_discussions', 'id', $post->discussion))) {
                 redirect("$CFG->wwwroot/mod/forum/view.php?f=$discussion->forum", get_string("ratingssaved", "forum"));
             } else {