load(); if ($course && $course->getType() == 'course' && $course->canEdit()) { if ($course->delete()) { $Dippler->add_system_message(_("Course deleted.")); } else { $Dippler->add_system_message(_("Course could not be deleted."), "error"); forward($course->getURL()); } } forward("courses/my"); ?>