Skip to content

Commit

Permalink
mod-wiki MDL-25001 Added missing arguments to optional_param_calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Nov 2, 2010
1 parent d0da42d commit 37a75be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/wiki/instancecomments.php
Expand Up @@ -39,8 +39,8 @@

$pageid = required_param('pageid', PARAM_TEXT);
$action = optional_param('action', '', PARAM_ACTION);
$id = optional_param('id', PARAM_INT);
$commentid = optional_param('commentid', PARAM_INT);
$id = optional_param('id', 0, PARAM_INT);
$commentid = optional_param('commentid', 0, PARAM_INT);
$newcontent = optional_param('newcontent', '', PARAM_CLEANHTML);

if (!$page = wiki_get_page($pageid)) {
Expand Down

0 comments on commit 37a75be

Please sign in to comment.