From dc389ad9a32236b38c5c0fa0490f9d396ee123b7 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Fri, 27 Jun 2008 10:54:45 +0000 Subject: [PATCH] MDL-15113 "Upgrade to DMLLIB 2.0." Fixed a call to a dml lib function where two of the params were the wrong way round which was causing a fatal error. --- mod/quiz/reviewquestion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/reviewquestion.php b/mod/quiz/reviewquestion.php index bf0342fc2b..ae9f97eaf0 100644 --- a/mod/quiz/reviewquestion.php +++ b/mod/quiz/reviewquestion.php @@ -125,7 +125,7 @@ // print quiz name $table->data[] = array(get_string('modulename', 'quiz').':', format_string($quiz->name)); if (has_capability('mod/quiz:viewreports', $context) and - count($attempts = $DB->get_records_select('quiz_attempts', "quiz = ? AND userid =?", 'attempt ASC', array($quiz->id, $attempt->userid))) > 1) { + count($attempts = $DB->get_records_select('quiz_attempts', "quiz = ? AND userid =?", array($quiz->id, $attempt->userid), 'attempt ASC')) > 1) { // print list of attempts $attemptlist = ''; foreach ($attempts as $at) { -- 2.39.5