X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-edit_sponsor.php;h=27b3978a2112c8bc9a38ed928e0b70cc22ce8db5;hb=53a63bee7a3dc419272e6dc2fc7c801e99ef0712;hp=d4e519a238b3a0f72806df1ef4f8749f37ef9d28;hpb=db0c6702086eea2c44d0aae1702dc2e77a0afc4e;p=mailer.git diff --git a/inc/modules/admin/what-edit_sponsor.php b/inc/modules/admin/what-edit_sponsor.php index d4e519a238..27b3978a21 100644 --- a/inc/modules/admin/what-edit_sponsor.php +++ b/inc/modules/admin/what-edit_sponsor.php @@ -60,15 +60,6 @@ LIMIT 1", // Load sponsor details $content = SQL_FETCHARRAY($result_main); - // Prepare all data for the template - // Init gender - foreach (array('m', 'f', 'c') as $gender) { - $content['gender_' . $gender] = ''; - } // END - foreach - - // Check for gender selection - $content['gender_' . strtolower($content['gender'])] = ' selected="selected"'; - // Warning because low points $content['receive_warnings'] = addSelectionBox('yn', $content['receive_warnings'], 'receive_warning'); $content['warning_interval'] = createTimeSelections($content['warning_interval'], 'warning_interval', 'MWDh'); @@ -138,7 +129,7 @@ LIMIT 1", // Convert time selection $DATA = array(); $id = 'warning_interval_ye'; $skip = false; - convertSelectionsToTimestamp(postRequestArray(), $DATA, $id, $skip); + convertSelectionsToEpocheTime(postRequestArray(), $DATA, $id, $skip); // Save the sponsor handleSponsorRequest(postRequestArray());