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