} // For each category being submitted
// Otherwise if this is a submission and there's no categories submitted, so make sure there's none stored
- } elseif (isset($_REQUEST['option']) && $_REQUEST['option'] == 'submit') {
+ } elseif ( isset($_REQUEST['option']) && ( $_REQUEST['option'] === 'submit' || $_REQUEST['option'] === 'update' ) ) {
$EventCategories->clearEventCategories($this->eventID);
}
} // For each amenity being submitted
// Otherwise if this is a submission and there's no amenities submitted, so make sure there's none stored
- } elseif (isset($_REQUEST['option']) && $_REQUEST['option'] == 'submit') {
+ } elseif (isset($_REQUEST['option']) && ( $_REQUEST['option'] === 'submit' || $_REQUEST['option'] === 'update' ) ) {
$EventAmenities->clearEventAmenities($this->eventID);
}