mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-40010_master' of https://github.com/markn86/moodle
This commit is contained in:
commit
47cddbed5c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue