Skip to content
Browse files

MDL-28465 rating: altered one of the get_ratings() queries to avoid p…

…ossible future duplicate first column problems
  • Loading branch information...
1 parent 8c598be commit b6cbbb862cce78c28436bf43bc3825df92df2234 @andyjdavis andyjdavis committed Aug 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 rating/lib.php
View
2 rating/lib.php
@@ -288,7 +288,7 @@ public function get_ratings($options) {
$params['userid'] = $userid;
$params['contextid'] = $options->context->id;
- $sql = "SELECT r.itemid, r.id, r.userid, r.scaleid, r.rating AS usersrating
+ $sql = "SELECT r.id, r.itemid, r.userid, r.scaleid, r.rating AS usersrating
FROM {rating} r
WHERE r.userid = :userid AND
r.contextid = :contextid AND

0 comments on commit b6cbbb8

Please sign in to comment.
Something went wrong with that request. Please try again.