From: Tim Lock Date: Thu, 26 Sep 2013 04:14:15 +0000 (+0930) Subject: MDL-41996: Don't show the Review Attempt link if no attempts exist. X-Git-Tag: v2.6.0-beta~180^2 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=7d0f566b2da72388d4df07dde99bd1ad491e4875;ds=inline MDL-41996: Don't show the Review Attempt link if no attempts exist. --- 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; }