xxx_param() fix

This commit is contained in:
skodak
2005-11-18 10:54:45 +00:00
parent f72b6e915a
commit 07d9001c08
+2 -2
View File
@@ -5,8 +5,8 @@
require_once("../config.php");
require_once("lib.php");
require_variable($id); // Course id
optional_variable($name);
$id = optional_param('id', false, PARAM_INT); // Course id
$name = optional_param('name', false, PARAM_RAW); // Course short name
if (!$id and !$name) {
error("Must specify course id or short name");