Skip to content

Commit

Permalink
Merge branch 'MDL-34532' of git://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 31, 2012
2 parents 1383794 + f8b6652 commit 8ba2123
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mod/quiz/report/attemptsreport_table.php
Expand Up @@ -152,7 +152,11 @@ public function col_fullname($attempt) {
* @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 '-';
}
}

/**
Expand Down

0 comments on commit 8ba2123

Please sign in to comment.