From ec16252734300eee12e3410edaa5441a68eebeed Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 4 Jun 2013 18:19:30 +0800 Subject: [PATCH] MDL-40010 notes: passing an object rather than an id to avoid debugging message --- notes/delete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/delete.php b/notes/delete.php index 11138dff86e..21b0f99c040 100644 --- a/notes/delete.php +++ b/notes/delete.php @@ -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); -- 2.43.0