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

@ -5,8 +5,7 @@
require_once("lib.php");
global $CFG;
require_variable($id);
$id = required_param('id', PARAM_INT);
$mode = optional_param('mode');
require_login();