Skip to content

Commit

Permalink
Now courses are viewable by idnumber. Credits to Paolo Oprandi.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Nov 16, 2005
1 parent 0c8a2d5 commit 533229c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/view.php
Expand Up @@ -13,8 +13,8 @@
$topic = optional_param('topic',0,PARAM_INT);
$studentview = optional_param('studentview','',PARAM_ALPHA);

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)) {
Expand Down

0 comments on commit 533229c

Please sign in to comment.