Check added. SC#23

This commit is contained in:
stronk7
2004-12-12 12:52:55 +00:00
parent 651a50567a
commit ec3a195f56
+6
View File
@@ -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;
}