Merge branch 'MDL-28976' of git://github.com/timhunt/moodle
[moodle.git] / mod / quiz / renderer.php
index a3c6c2c..9709681 100644 (file)
@@ -761,8 +761,9 @@ class mod_quiz_renderer extends plugin_renderer_base {
             }
             $row[] = $datecompleted;
 
-            if ($viewobj->markcolumn && $attempt->timefinish > 0) {
-                if ($attemptoptions->marks >= question_display_options::MARK_AND_MAX) {
+            if ($viewobj->markcolumn) {
+                if ($attemptoptions->marks >= question_display_options::MARK_AND_MAX &&
+                        $attempt->timefinish > 0) {
                     $row[] = quiz_format_grade($quiz, $attempt->sumgrades);
                 } else {
                     $row[] = '';