Replace require_variable() by required_param()

This commit is contained in:
gustav_delius 2006-04-06 12:56:37 +00:00
parent e49a8d099e
commit a488b9325c
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ if (($post = data_submitted( get_referer() )) && confirm_sesskey()) {
} else if ($post->act == 'update') {
do_update($post, $PAGE->bloginfo);
} else if ($post->act == 'del') {
require_variable($postid);
$postid = required_param('postid', PARAM_INT);
do_delete($PAGE->bloginfo, $postid);
}
}

View File

@ -3,7 +3,7 @@
require("../../config.php");
require_once("$CFG->dirroot/enrol/paypal/enrol.php");
require_variable($id);
$id = required_param('id', PARAM_INT);
if (!$course = get_record("course", "id", $id)) {
redirect($CFG->wwwroot);