Merge branch 'MDL-69716-master' of git://github.com/aanabit/moodle
authorJake Dallimore <jake@moodle.com>
Thu, 29 Oct 2020 04:39:48 +0000 (12:39 +0800)
committerJake Dallimore <jake@moodle.com>
Thu, 29 Oct 2020 04:39:48 +0000 (12:39 +0800)
mod/quiz/lib.php

index 18074d7..eb9b090 100644 (file)
@@ -561,8 +561,8 @@ function quiz_user_complete($course, $user, $mod, $quiz) {
                 } else {
                     echo get_string('hidden', 'grades');
                 }
+                echo ' - '.userdate($attempt->timefinish).'<br />';
             }
-            echo ' - '.userdate($attempt->timefinish).'<br />';
         }
     } else {
         print_string('noattempts', 'quiz');