load(); if ($course && $course->getType() == 'course' && $course->canEdit()) { $removed = $course->removeLearner($learner_id); if ($removed) { $Dippler->add_system_message(_("Learner removed.")); // TODO send email } else { $Dippler->add_system_message(_("Learner could not be removed."), 'error'); } forward($course->getURL('learners')); } forward(); ?>