diff --git a/mod/quiz/index.php b/mod/quiz/index.php
index <HASH>..<HASH> 100644
--- a/mod/quiz/index.php
+++ b/mod/quiz/index.php
@@ -120,6 +120,8 @@
                 $a->studentstring  = $course->students;
                 $data[] = "<a href=\"report.php?mode=overview&amp;q=$quiz->id\">" .
                         get_string('numattempts', 'quiz', $a) . '</a>';
+            } else {
+                $data[] = '';
             }
         } else if ($showing = 'scores') {
MDL-<I> - Problem with the tables on the quiz index page. Merged from MOODLE_<I>_STABLE.