Browse Source

Fix block page when setting "exercises_hidden_when_no_start_date" is on

In configuration.php

$_custom['exercises_hidden_when_no_start_date']

See BT#15631
Julio Montoya 5 years ago
parent
commit
961c380ac7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      main/exercise/exercise_submit.php

+ 3 - 2
main/exercise/exercise_submit.php

@@ -966,7 +966,8 @@ if (isset($_custom['exercises_hidden_when_no_start_date']) &&
             'warning'
         );
         if (!in_array($origin, ['learnpath', 'embeddable'])) {
-            Display :: display_footer();
+            Display::display_footer();
+            exit;
         }
     }
 }
@@ -1551,4 +1552,4 @@ if (!in_array($origin, ['learnpath', 'embeddable'])) {
     echo '</div>'; //End glossary div
 }
 
-Display :: display_footer();
+Display::display_footer();