mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-40010 notes: passing an object rather than an id to avoid debugging message
This commit is contained in:
parent
b6f8a93642
commit
ec16252734
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user