Permalink
Browse files

FIxed strange bug when returning from a rating to a discussion

  • Loading branch information...
1 parent 98e83c1 commit ae5eca6313d4e7822b37083d3499e793c5f9138e moodler committed Nov 30, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/rate.php
View
@@ -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 {

0 comments on commit ae5eca6

Please sign in to comment.