We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b590a17 commit b21a8a2Copy full SHA for b21a8a2
main/exercise/exercise_report.php
@@ -60,7 +60,7 @@
60
$sessionId = api_get_session_id();
61
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null;
62
63
-if ('export_all_exercises_results' !== $action) {
+if ('export_all_exercises_results' !== $action && !(isset($_GET['delete']) && $_GET['delete'] === 'delete')) {
64
if (empty($exercise_id)) {
65
api_not_allowed(true);
66
}
@@ -523,6 +523,10 @@
523
if (!empty($exe_id)) {
524
ExerciseLib::deleteExerciseAttempt($exe_id);
525
526
+ if (empty($exercise_id)) {
527
+ header('Location: pending.php');
528
+ exit;
529
+ }
530
header('Location: exercise_report.php?'.api_get_cidreq().'&exerciseId='.$exercise_id);
531
exit;
532
0 commit comments