Added an optional_param() for 'topic' as it was coming from 'register_globals'

land.
This commit is contained in:
thepurpleblob 2005-07-06 09:51:18 +00:00
parent dac5a79525
commit 37ef382cbe

View File

@ -10,6 +10,7 @@
$name = optional_param('name');
$edit = optional_param('edit');
$idnumber = optional_param('idnumber');
$topic = optional_param('topic',0,PARAM_INT);
if (empty($id) && empty($name)) {
error("Must specify course id or short name");