From 7d0f566b2da72388d4df07dde99bd1ad491e4875 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 52c34e3b3f7..6c19c50883c 100644 --- a/mod/quiz/report/attemptsreport_table.php +++ b/mod/quiz/report/attemptsreport_table.php @@ -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; } -- 2.43.0