From: jamiesensei Date: Fri, 27 Jun 2008 10:54:45 +0000 (+0000) Subject: MDL-15113 "Upgrade to DMLLIB 2.0." Fixed a call to a dml lib function where two of... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dc389ad9a32236b38c5c0fa0490f9d396ee123b7;p=moodle.git 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. --- 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) {