quiz overview MDL-23377 whitespace cleanup, before doing the real fix.

This commit is contained in:
Tim Hunt 2010-08-03 12:54:23 +00:00
parent 9bf1b7166f
commit 07a2b2f0f0

View file

@ -119,7 +119,6 @@ class quiz_overview_report extends quiz_default_report {
$candelete = has_capability('mod/quiz:deleteattempts', $this->context)
&& ($attemptsmode!= QUIZ_REPORT_ATTEMPTS_STUDENTS_WITH_NO);
$displayoptions = array();
$displayoptions['attemptsmode'] = $attemptsmode;
$displayoptions['qmfilter'] = $qmfilter;
@ -140,7 +139,6 @@ class quiz_overview_report extends quiz_default_report {
}
}
//work out the sql for this table.
if ($detailedmarks) {
$questions = quiz_report_load_questions($quiz);
@ -174,7 +172,6 @@ class quiz_overview_report extends quiz_default_report {
}
}
// Print information on the number of existing attempts
if (!$table->is_downloading()) { //do not print notices when downloading
if ($strattemptnum = quiz_num_attempt_summary($quiz, $cm, true, $currentgroup)) {
@ -195,13 +192,8 @@ class quiz_overview_report extends quiz_default_report {
$mform->display();
}
if (!$nostudents || ($attemptsmode == QUIZ_REPORT_ATTEMPTS_ALL)) {
// Construct the SQL
$fields = $DB->sql_concat('u.id', '\'#\'', 'COALESCE(qa.attempt, \'0\')').' AS uniqueid, ';
if ($qmsubselect) {
@ -661,8 +653,4 @@ class quiz_overview_report extends quiz_default_report {
}
$this->check_overall_grades($quiz, array(), $updateoverallgrades);
}
}