NOBUG: Fix notice (and something more?). Like MDL-12961 but in data module

This commit is contained in:
Eloy Lafuente
2010-01-13 16:47:42 +00:00
parent 3de4198a4f
commit b70f33ea6d
+2
View File
@@ -14,6 +14,8 @@
if (!$cm = get_coursemodule_from_instance('data', $data->id)) {
error("Course Module ID was incorrect");
} else {
$data->cmidnumber = $cm->id; //MDL-12961
}
require_login($course, false, $cm);