diff --git a/calendar/lib.php b/calendar/lib.php
index dbeb4a6a951bd..703d88db9ec36 100644
--- a/calendar/lib.php
+++ b/calendar/lib.php
@@ -557,14 +557,16 @@ function calendar_print_event($event) {
$deletelink = CALENDAR_URL.'event.php?action=delete&id='.$event->id.$calendarcourseid;
} else {
$editlink = $CFG->wwwroot.'/course/mod.php?update='.$event->cmid.'&return=true&sesskey='.$USER->sesskey;
- $deletelink = $CFG->wwwroot.'/course/mod.php?delete='.$event->cmid.'&sesskey='.$USER->sesskey;;
+ $deletelink = ''; // deleting activities directly from calendar is dangerous/confusing - see MDL-11843
}
echo ' ';
- echo ' ';
+ if ($deletelink) {
+ echo ' ';
+ }
echo '';
}
echo '';