From 38fd9ad17be5f83ed1232d42b4c2fa8b72ef1418 Mon Sep 17 00:00:00 2001 From: Markus Date: Fri, 25 Oct 2024 19:48:49 +0200 Subject: [PATCH] fix invalid parameter for required_param --- classes/local/output/pages/processattempt_page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/local/output/pages/processattempt_page.php b/classes/local/output/pages/processattempt_page.php index 481afe0..7d757a5 100644 --- a/classes/local/output/pages/processattempt_page.php +++ b/classes/local/output/pages/processattempt_page.php @@ -100,7 +100,7 @@ private function setup_instance_variables(): void { * @throws moodle_exception */ private function process_request_parameters(): array { - $cmid = required_param('id', 0, PARAM_INT); + $cmid = required_param('id', PARAM_INT); $attempt_id = view_page::get_attempt_id_param(); if ($attempt_id === null) { throw new invalid_parameter_exception();