Permalink
Browse files

"MDL-14262, fix optional_param, backported from MOODLE_19_STABLE"

  • Loading branch information...
1 parent 8794dfd commit acbbc1e3d3fc40ff2c4f331654a2e8bae3b6d3c5 dongsheng committed Apr 30, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/user.php
View
2 mod/forum/user.php
@@ -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);

0 comments on commit acbbc1e

Please sign in to comment.