X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_doubler.php;h=e52215da301d59177eb91812d7602822ef9bba6f;hb=05ac410a5adaa49c99b6eeae4bef60f2994f1575;hp=6738249233865bb73a84d7c0e865568ab2341c19;hpb=73e9d78e610057f6c6d311328b3ad438ad017791;p=mailer.git diff --git a/inc/modules/admin/what-config_doubler.php b/inc/modules/admin/what-config_doubler.php index 6738249233..e52215da30 100644 --- a/inc/modules/admin/what-config_doubler.php +++ b/inc/modules/admin/what-config_doubler.php @@ -44,18 +44,14 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); if (isFormSent()) { - // Replace commata with decimal dot - setPostRequestParameter('doubler_charge', convertCommaToDot(postRequestParameter('doubler_charge'))); - setPostRequestParameter('doubler_ref' , convertCommaToDot(postRequestParameter('doubler_ref'))); - setPostRequestParameter('doubler_min' , convertCommaToDot(postRequestParameter('doubler_min'))); - setPostRequestParameter('doubler_max' , convertCommaToDot(postRequestParameter('doubler_max'))); - setPostRequestParameter('doubler_left' , convertCommaToDot(postRequestParameter('doubler_left'))); + // Replace german decimal comma with computer decimal dot + convertCommaToDotInPostDataArray(array('doubler_charge', 'doubler_ref', 'doubler_min', 'doubler_max', 'doubler_left')); // Save settings adminSaveSettingsFromPostData(); } else { // Init all Y/N selections - foreach (array('jackpot','own','sent_all') as $entry) { + foreach (array('jackpot', 'own', 'sent_all') as $entry) { $content[$entry . '_y'] = ''; $content[$entry . '_n'] = ''; $content[$entry . '_' . strtolower(getConfig('doubler_' . $entry))] = ' checked="checked"'; @@ -72,7 +68,7 @@ if (isFormSent()) { } // END - foreach // Transfer options - $content['form_selection'] = addMemberSelectionBox(getConfig('doubler_userid'), false, true, true, 'doubler_userid'); + $content['doubler_userid'] = addMemberSelectionBox(getConfig('doubler_userid'), false, true, true, 'doubler_userid'); // Number of rows to display (option lines!!!) foreach (array('new','pay','old') as $entry) {