Skip to content

Commit

Permalink
quiz summary MDL-23700 logic for whether to show the marks column was…
Browse files Browse the repository at this point in the history
… wrong.
  • Loading branch information
timhunt committed Aug 11, 2010
1 parent 36fa6cb commit 1be4990
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/quiz/summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
$table->head = array(get_string('question', 'quiz'), get_string('status', 'quiz'));
$table->align = array('left', 'left');
$table->size = array('', '');
$scorescolumn = $attemptobj->get_review_options()->scores;
$scorescolumn = $attemptobj->get_review_options()->scores &&
($attemptobj->get_quiz()->optionflags & QUESTION_ADAPTIVE);
if ($scorescolumn) {
$table->head[] = get_string('marks', 'quiz');
$table->align[] = 'left';
Expand Down

0 comments on commit 1be4990

Please sign in to comment.