Skip to content

Commit

Permalink
Check added. SC#23
Browse files Browse the repository at this point in the history
Merged from MOODLE_14_STABLE
  • Loading branch information
stronk7 committed Dec 12, 2004
1 parent 14ed121 commit c062fee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rss/file.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?PHP //$Id$
<?php //$Id$
//This file returns the required rss feeds
//The URL format MUST include:
// course: the course id
Expand Down Expand Up @@ -49,6 +49,12 @@
$modulename = $args[2];
$instance = (integer)$args[3];

//Check name of module
$mods = get_list_of_plugins("mod");
if (!in_array(strtolower($modulename), $mods)) {
error("This module doesn't exist!");
}

if (! $course = get_record("course", "id", $courseid)) {
$error = true;
}
Expand Down

0 comments on commit c062fee

Please sign in to comment.