]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed up rating retrieval ... now gets them all seperate
authormoodler <moodler>
Mon, 21 Oct 2002 08:36:15 +0000 (08:36 +0000)
committermoodler <moodler>
Mon, 21 Oct 2002 08:36:15 +0000 (08:36 +0000)
mod/forum/lib.php

index 81a010232f7aa46c2aed052c7aaacea0d35de7cd..3202b31742224dc19e222b58f8e6dc92735b72aa 100644 (file)
@@ -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