Now courses are viewable by idnumber. Credits to Paolo Oprandi.
(http://moodle.org/mod/forum/discuss.php?d=18442)
This commit is contained in:
+2
-2
@@ -11,8 +11,8 @@
|
||||
$edit = optional_param('edit');
|
||||
$idnumber = optional_param('idnumber');
|
||||
|
||||
if (empty($id) && empty($name)) {
|
||||
error("Must specify course id or short name");
|
||||
if (empty($id) && empty($name) && empty($idnumber)) {
|
||||
error("Must specify course id, short name or idnumber");
|
||||
}
|
||||
|
||||
if (!empty($name)) {
|
||||
|
||||
Reference in New Issue
Block a user