mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Added an optional_param() for 'topic' as it was coming from 'register_globals'
land.
This commit is contained in:
parent
dac5a79525
commit
37ef382cbe
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user