Merged from MOODLE_14_STABLE: Bug fix for forum rating redirects - manifested itself in invalid sql in postgres

This commit is contained in:
mjollnir_ 2004-11-23 23:13:52 +00:00
parent 6b7f8df2ec
commit ef0fc810bf

View 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 {