diff --git a/lib/moodlelib.php b/lib/moodlelib.php index abb73c332d5..8fd08cdb637 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -4936,7 +4936,6 @@ function remove_course_contents($courseid, $showfeedback = true, array $options $oldcourse->summary = ''; $oldcourse->cacherev = 0; $oldcourse->legacyfiles = 0; - $oldcourse->enablecompletion = 0; if (!empty($options['keep_groups_and_groupings'])) { $oldcourse->defaultgroupingid = 0; }