mod-wiki MDL-25001 Added missing arguments to optional_param_calls
authorSam Hemelryk <sam@moodle.com>
Tue, 2 Nov 2010 03:02:08 +0000 (03:02 +0000)
committerSam Hemelryk <sam@moodle.com>
Tue, 2 Nov 2010 03:02:08 +0000 (03:02 +0000)
mod/wiki/instancecomments.php

index dbb7cc2..cec3f4a 100644 (file)
@@ -39,8 +39,8 @@ require_once($CFG->dirroot . '/mod/wiki/comments_form.php');
 
 $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)) {