MDL-34379 quiz reports: timetaken 'open' for never submitted attempts

This commit is contained in:
Tim Hunt
2012-07-19 12:51:55 +01:00
parent 3294034b80
commit 7326b7e247
-2
View File
@@ -189,8 +189,6 @@ abstract class quiz_attempts_report_table extends table_sql {
public function col_duration($attempt) {
if ($attempt->timefinish) {
return format_time($attempt->timefinish - $attempt->timestart);
} else if ($attempt->timestart) {
return get_string('unfinished', 'quiz');
} else {
return '-';
}