Skip to content

Commit

Permalink
Merge branch 'MDL-40010_master' of https://github.com/markn86/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jun 11, 2013
2 parents 7a70cfe + ec16252 commit 47cddbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
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);
Expand Down

0 comments on commit 47cddbe

Please sign in to comment.