Commit 8ba21237 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

Merge branch 'MDL-34532' of git://github.com/timhunt/moodle

parents 1383794b f8b66522
......@@ -152,7 +152,11 @@ abstract class quiz_attempts_report_table extends table_sql {
* @return string HTML content to go inside the td.
*/
public function col_state($attempt) {
return quiz_attempt::state_name($attempt->state);
if (!is_null($attempt->attempt)) {
return quiz_attempt::state_name($attempt->state);
} else {
return '-';
}
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment