mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
quiz overview MDL-23377 whitespace cleanup, before doing the real fix.
This commit is contained in:
parent
9bf1b7166f
commit
07a2b2f0f0
1 changed files with 46 additions and 58 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue