FIxed strange bug when returning from a rating to a discussion

This commit is contained in:
moodler
2004-11-30 01:41:52 +00:00
parent 98e83c1517
commit ae5eca6313
+1 -1
View File
@@ -54,7 +54,7 @@
}
}
}
if ($post = get_record('forum_posts', 'id', $id)) {
if ($post = get_record('forum_posts', 'id', $postid)) {
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 {