Skip to content

Commit

Permalink
fix invalid parameter for required_param
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed Oct 25, 2024
1 parent abf129d commit 38fd9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/local/output/pages/processattempt_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 38fd9ad

Please sign in to comment.