From a7c5e2d24dbea6f8490e8b39901ececb4ccc84f1 Mon Sep 17 00:00:00 2001 From: Tim Lock Date: Thu, 26 Sep 2013 13:44:15 +0930 Subject: [PATCH] MDL-41996: Don't show the Review Attempt link if no attempts exist. --- mod/quiz/report/attemptsreport_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/report/attemptsreport_table.php b/mod/quiz/report/attemptsreport_table.php index 379577685a6..105952041db 100644 --- a/mod/quiz/report/attemptsreport_table.php +++ b/mod/quiz/report/attemptsreport_table.php @@ -137,7 +137,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; } -- 2.11.4.GIT