Merge branch 'MDL-40010_master' of https://github.com/markn86/moodle

This commit is contained in:
Dan Poltawski 2013-06-11 13:05:25 +08:00
commit 47cddbed5c

View file

@ -41,7 +41,7 @@ if (empty($CFG->enablenotes)) {
if (data_submitted() && confirm_sesskey()) {
//if data was submitted and is valid, then delete note
$returnurl = $CFG->wwwroot . '/notes/index.php?course=' . $course->id . '&user=' . $note->userid;
if (!note_delete($noteid)) {
if (!note_delete($note)) {
print_error('cannotdeletepost', 'notes', $returnurl);
}
redirect($returnurl);