From fa02a1f08efe1be2425567a34caa235775dbce85 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 7 Oct 2014 09:48:18 +0200 Subject: [PATCH] Only show attempts if exercise is visible see BT#8787 --- main/exercice/overview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/exercice/overview.php b/main/exercice/overview.php index b35fe7c174..66eebad649 100755 --- a/main/exercice/overview.php +++ b/main/exercice/overview.php @@ -157,7 +157,7 @@ if ($current_browser == 'Internet Explorer') { $btn_class = ''; } -if (!empty($attempts)) { +if (!empty($attempts) && $visible_return['value'] == true) { $i = $counter; foreach ($attempts as $attempt_result) {