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

This commit is contained in:
Tim Lock
2013-10-01 20:05:12 +02:00
committed by Eloy Lafuente (stronk7)
parent 4ae75c1847
commit a7c5e2d24d
+1 -1
View File
@@ -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;
}