mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
"MDL-14262, fix optional_param, backported from MOODLE_19_STABLE"
This commit is contained in:
parent
8794dfd840
commit
acbbc1e3d3
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
// Course ID
|
||||
$course = required_param('course', PARAM_INT);
|
||||
// User ID
|
||||
$id = optional_param('id', PARAM_INT);
|
||||
$id = optional_param('id', 0, PARAM_INT);
|
||||
$mode = optional_param('mode', 'posts', PARAM_ALPHA);
|
||||
$page = optional_param('page', 0, PARAM_INT);
|
||||
$perpage = optional_param('perpage', 5, PARAM_INT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue