MDL-41996: Don't show the Review Attempt link if no attempts exist.
authorTim Lock <tim.lock@netspot.com.au>
Thu, 26 Sep 2013 04:14:15 +0000 (13:44 +0930)
committerTim Lock <tim.lock@netspot.com.au>
Thu, 26 Sep 2013 04:14:15 +0000 (13:44 +0930)
mod/quiz/report/attemptsreport_table.php

index 52c34e3..6c19c50 100644 (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;
         }