mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Replaced optional_var with optional_param
This commit is contained in:
parent
3a6b53e80d
commit
aa8139414e
18 changed files with 85 additions and 90 deletions
|
@ -7,7 +7,7 @@
|
|||
require_once("lib.php");
|
||||
|
||||
|
||||
require_variable($id); // The course these ratings are part of
|
||||
$id = required_param('id', PARAM_INT); // The course these ratings are part of
|
||||
|
||||
if (! $course = get_record("course", "id", $id)) {
|
||||
error("Course ID was incorrect");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue