Permalink
Browse files

Fixed up rating retrieval ... now gets them all seperate

  • Loading branch information...
1 parent 36df40d commit f166d2e295eeb3b7c18dc57adf3ce47a1fb49de0 moodler committed Oct 21, 2002
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 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

0 comments on commit f166d2e

Please sign in to comment.