MDL-41996: Don't show the Review Attempt link if no attempts exist.
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
4ae75c1847
commit
a7c5e2d24d
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user