MDL-41894 feedback: Remove unused code, which is generating warnings

This commit is contained in:
Ankit Agarwal 2013-09-19 17:45:41 +08:00
parent c925e4fa8e
commit cbacf2e5e0

View File

@ -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);
////////////////////////////////////////////////////////