mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
MDL-41894 feedback: Remove unused code, which is generating warnings
This commit is contained in:
parent
c925e4fa8e
commit
cbacf2e5e0
@ -41,10 +41,6 @@ $current_tab = $do_show;
|
||||
//get the objects
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
if ($userid) {
|
||||
$formdata->userid = intval($userid);
|
||||
}
|
||||
|
||||
if (! $cm = get_coursemodule_from_id('feedback', $id)) {
|
||||
print_error('invalidcoursemodule');
|
||||
}
|
||||
@ -65,10 +61,6 @@ $context = context_module::instance($cm->id);
|
||||
|
||||
require_login($course, true, $cm);
|
||||
|
||||
if (($formdata = data_submitted()) AND !confirm_sesskey()) {
|
||||
print_error('invalidsesskey');
|
||||
}
|
||||
|
||||
require_capability('mod/feedback:viewreports', $context);
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user