Now courses are viewable by idnumber. Credits to Paolo Oprandi.

(http://moodle.org/mod/forum/discuss.php?d=18442)
This commit is contained in:
stronk7
2005-11-16 23:20:08 +00:00
parent 4a2aeccb2b
commit 38271961ae
+2 -2
View File
@@ -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)) {