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
pull/2901/head
Julio Montoya 7 years ago
parent b6ba12bdd6
commit 961c380ac7
  1. 5
      main/exercise/exercise_submit.php

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

Loading…
Cancel
Save