Permalink
Browse files

MDL-36086 Fix SQL parameters array

  • Loading branch information...
1 parent 7e8ae12 commit 462b4c128c7184c746b849a1ca749e7af7714e47 @mudrd8mz mudrd8mz committed Oct 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/workshop/locallib.php
@@ -1747,7 +1747,7 @@ public function prepare_grading_report_data($userid, $groupid, $page, $perpage,
JOIN {user} e ON (s.authorid = e.id)
WHERE u.id $participantids AND s.workshopid = :workshopid
ORDER BY a.weight DESC, $sort";
- $reviewees = $DB->get_records_sql($sql, array_merge($sortparams));
+ $reviewees = $DB->get_records_sql($sql, array_merge($params, $sortparams));
foreach ($reviewees as $reviewee) {
if (!isset($userinfo[$reviewee->authorid])) {
$userinfo[$reviewee->authorid] = new stdclass();

0 comments on commit 462b4c1

Please sign in to comment.