mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +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
|
@ -6,8 +6,8 @@
|
|||
|
||||
require_once("$CFG->dirroot/config.php");
|
||||
|
||||
require_variable($category);
|
||||
optional_variable($question);
|
||||
$category = required_param('category', PARAM_ALPHANUM);
|
||||
$question = optional_param('question', '', PARAM_INT);
|
||||
|
||||
if (! $category = get_record("quiz_categories", "id", $category)) {
|
||||
error("This wasn't a valid category!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue