mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Replace require_variable() by required_param()
This commit is contained in:
parent
e49a8d099e
commit
a488b9325c
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user