X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_other.php;h=8b27babbde07b2e8e57ff641e67b488cd5d2c680;hb=fb09ea805dbbe3eb18cf8257f16d15f211cfd1e3;hp=f789d2a38474a5b0f93f504aeede7a2e07798fd0;hpb=63f159414369b5ea19a8ca75d8cd8033c45d8341;p=mailer.git diff --git a/inc/modules/admin/what-config_other.php b/inc/modules/admin/what-config_other.php index f789d2a384..8b27babbde 100644 --- a/inc/modules/admin/what-config_other.php +++ b/inc/modules/admin/what-config_other.php @@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Stop saving data if one input field is !isset -if (isFormSent()) { +if (isFormSent('save_config')) { // Calculate stamps and set calculated stamps setPostRequestElement('online_timeout' , createEpocheTimeFromSelections('online_timeout' , postRequestArray())); setPostRequestElement('url_tlock' , createEpocheTimeFromSelections('url_tlock' , postRequestArray())); @@ -67,7 +67,7 @@ if (isFormSent()) { if (!isPostRequestElementSet('reject_url')) { unsetPostRequestElement('ok'); } } // END - if -if (isFormSent()) { +if (isFormSent('save_config')) { // Update stamps directly adminSaveSettingsFromPostData(); } else { @@ -83,20 +83,18 @@ if (isFormSent()) { $content[$entry] = ''; } // END - foreach - // Set selections - foreach (array('css_php','mailid_error_redirect') as $entry) { - $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"'; - } // END - foreach - for ($i = '0'; $i <= 5; $i++) { - $content['comma_def_' . $i] = ''; + $content['max_comma_' . $i] = ''; } // END - for + // Set selections + $content = merge_array($content, getCheckedConfig(array('css_php', 'mailid_error_redirect'))); + // Set selection - $content['comma_def_' . getConfig('max_comma')] = ' selected="selected"'; + $content = merge_array($content, getSelectedConfig(array('max_comma'))); // Load template - loadTemplate('admin_config_other', false, $content); + loadTemplate('admin_config_other', FALSE, $content); } // [EOF]