Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-28196 quiz calls get_in_or_equal (not DB->get_in_or_equal) in two…

… places

Also, another minor error in one method call.
  • Loading branch information...
commit 69b88de0df4e8b19550953bc66c9183fab251eea 1 parent 17b8d59
Tim Hunt timhunt authored stronk7 committed
2  mod/quiz/report/overview/overview_table.php
View
@@ -75,7 +75,7 @@ public function build_table() {
$namekey => get_string('groupavg', 'grades'),
'sumgrades' => $this->format_average($record),
'feedbacktext'=> strip_tags(quiz_report_feedback_for_grade(
- $record->grade, $this->quiz->id)));
+ $record->grade, $this->quiz->id, $this->context)));
if ($this->detailedmarks && ($this->quiz->attempts == 1 || $this->qmsubselect)) {
$avggradebyq = $this->load_average_question_grades($this->groupstudents);
$groupaveragerow += $this->format_average_grade_for_questions($avggradebyq);
2  mod/quiz/report/overview/report.php
View
@@ -509,7 +509,7 @@ protected function count_question_attempts_needing_regrade($quiz, $groupstudents
$usertest = '';
$params = array();
if ($groupstudents) {
- list($usql, $params) = get_in_or_equal($groupstudents);
+ list($usql, $params) = $DB->get_in_or_equal($groupstudents);
$usertest = "quiza.userid $usql AND ";
}
2  mod/quiz/report/statistics/report.php
View
@@ -1047,7 +1047,7 @@ function quiz_statistics_attempts_sql($quizid, $currentgroup, $groupstudents,
$qaparams = array('quizid' => $quizid);
if (!empty($currentgroup) && $groupstudents) {
- list($grpsql, $grpparams) = get_in_or_equal(array_keys($groupstudents),
+ list($grpsql, $grpparams) = $DB->get_in_or_equal(array_keys($groupstudents),
SQL_PARAMS_NAMED, 'u');
$whereqa .= " AND quiza.userid $grpsql";
$qaparams += $grpparams;
Please sign in to comment.
Something went wrong with that request. Please try again.