Check added. SC#23

Merged from MOODLE_14_STABLE
This commit is contained in:
stronk7
2004-12-12 12:54:32 +00:00
parent 14ed121a90
commit c062fee637
+7 -1
View File
@@ -1,4 +1,4 @@
<?PHP //$Id$
<?php //$Id$
//This file returns the required rss feeds
//The URL format MUST include:
// course: the course id
@@ -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;
}