Replaced optional_var with optional_param

This commit is contained in:
moodler 2005-12-07 06:21:58 +00:00
parent 3a6b53e80d
commit aa8139414e
18 changed files with 85 additions and 90 deletions

View file

@ -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!");