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