MDL-41996: Don't show the Review Attempt link if no attempts exist.

This commit is contained in:
Tim Lock
2013-09-26 13:44:15 +09:30
parent f09119e1e5
commit 7d0f566b2d
+1 -1
View File
@@ -138,7 +138,7 @@ abstract class quiz_attempts_report_table extends table_sql {
*/
public function col_fullname($attempt) {
$html = parent::col_fullname($attempt);
if ($this->is_downloading()) {
if ($this->is_downloading() || empty($attempt->attempt)) {
return $html;
}