MDL-7821 wrong use of cm in data mod and added proper require_login()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user