Permalink
Browse files

Bug fix for forum rating redirects - manifested itself in invalid sql…

… in postgres
  • Loading branch information...
1 parent c12ab13 commit 3a4b2855490173d3c53f0038389331dcc806ad5c mjollnir_ committed Nov 23, 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', $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 {

0 comments on commit 3a4b285

Please sign in to comment.