Permalink
Browse files

xxx_param() fix

  • Loading branch information...
1 parent f72b6e9 commit 07d9001c08161faa2f0953530b89dbb2ca5c7a03 skodak committed Nov 18, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/info.php
View
@@ -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");

0 comments on commit 07d9001

Please sign in to comment.