MDL-7821 wrong use of cm in data mod and added proper require_login()

This commit is contained in:
skodak
2006-12-06 20:17:58 +00:00
parent de312b53bb
commit c088d6039d
7 changed files with 18 additions and 27 deletions
-1
View File
@@ -29,7 +29,6 @@
error('You cannot call this script in that way');
}
$cm = data_get_cm($data);
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
$inactive = NULL;