getSubtype(); if ($subtype == "course") { // in case something in cache, empty it unset($_SESSION['title']); unset($_SESSION['subjects']); unset($_SESSION['targetgroup']); unset($_SESSION['brief_description']); unset($_SESSION['description']); unset($_SESSION['additional_info']); unset($_SESSION['place']); unset($_SESSION['capacity']); unset($_SESSION['cost']); unset($_SESSION['beginning_date']); unset($_SESSION['ending_date']); unset($_SESSION['contact_person']); unset($_SESSION['telephone']); unset($_SESSION['email']); unset($_SESSION['gmaplocation']); forward($CONFIG->wwwroot . "pg/poster/edit_course/" . $entity_guid); } else if ($subtype == "job_offering" || $subtype == "job_wanted_ad") { unset($_SESSION['adtitle']); unset($_SESSION['jobtype']); unset($_SESSION['brief_description']); unset($_SESSION['adbody']); unset($_SESSION['place']); unset($_SESSION['contact_person']); unset($_SESSION['telephone']); unset($_SESSION['email']); unset($_SESSION['subjects']); forward($CONFIG->wwwroot . "pg/poster/edit_job_advertisement/" . $entity_guid); } ?>