From: moodler Date: Mon, 21 Oct 2002 08:36:15 +0000 (+0000) Subject: Fixed up rating retrieval ... now gets them all seperate X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f166d2e295eeb3b7c18dc57adf3ce47a1fb49de0;p=moodle.git Fixed up rating retrieval ... now gets them all seperate --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 81a010232f..3202b31742 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -372,7 +372,7 @@ function forum_grades($forumid) { if (!$forum->assessed) { return false; } - if ($ratings = get_records_sql("SELECT p.user, r.rating + if ($ratings = get_records_sql("SELECT r.id, p.user, r.rating FROM forum_discussions d, forum_posts p, forum_ratings r WHERE d.forum = '$forumid' AND p.discussion = d.id