Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-28982 fix DML use

  • Loading branch information...
commit 181b0dc545321fc64e02f04fe8e182cb10d425af 1 parent 24654d9
@skodak skodak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/report/grading/report.php
View
4 mod/quiz/report/grading/report.php
@@ -520,7 +520,7 @@ protected function get_question_state_summary($slots) {
*/
protected function get_usage_ids_where_question_in_state($summarystate, $slot,
$questionid = null, $orderby = 'random', $page = 0, $pagesize = null) {
- global $CFG;
+ global $CFG, $DB;
$dm = new question_engine_data_mapper();
if ($pagesize && $orderby != 'random') {
@@ -544,7 +544,7 @@ protected function get_usage_ids_where_question_in_state($summarystate, $slot,
} else if ($orderby == 'student' || $orderby == 'idnumber') {
$qubaids->from .= " JOIN {user} u ON quiza.userid = u.id ";
if ($orderby == 'student') {
- $orderby = sql_fullname('u.firstname', 'u.lastname');
+ $orderby = $DB->sql_fullname('u.firstname', 'u.lastname');
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.