diff --git a/mod/quiz/attempt.php b/mod/quiz/attempt.php
index 19af16c31d8..afbbebff5ce 100644
--- a/mod/quiz/attempt.php
+++ b/mod/quiz/attempt.php
@@ -81,7 +81,9 @@
print_heading($quiz->name);
print_heading(get_string("attempt", "quiz", $attemptnumber));
- print_simple_box(format_text($quiz->intro), "CENTER");
+ if (trim(strip_tags($quiz->intro))) {
+ print_simple_box(format_text($quiz->intro), "CENTER");
+ }
echo "
\n";
echo "