X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_doubler.php;h=8b21140c3074827a7d2f13042f989df7b155eccd;hb=45465772fed386cbfa0c1df9677cbd9134ac5819;hp=185aae57c17c526635c7cf9574abac7b1d86c6ba;hpb=001e43c93664d89ffc23aa4452aac8520279086d;p=mailer.git diff --git a/inc/modules/admin/what-config_doubler.php b/inc/modules/admin/what-config_doubler.php index 185aae57c1..8b21140c30 100644 --- a/inc/modules/admin/what-config_doubler.php +++ b/inc/modules/admin/what-config_doubler.php @@ -40,16 +40,16 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { // Add description as navigation point ADD_DESCR("admin", __FILE__); -if (isset($_POST['ok'])) { +if (IS_FORM_SENT()) { // Replace commata with decimal dot - $_POST['doubler_charge'] = REVERT_COMMA(($_POST['doubler_charge'] / 100)); - $_POST['doubler_ref'] = REVERT_COMMA(($_POST['doubler_ref'] / 100)); - $_POST['doubler_min'] = REVERT_COMMA($_POST['doubler_min']); - $_POST['doubler_max'] = REVERT_COMMA($_POST['doubler_max']); - $_POST['doubler_left'] = REVERT_COMMA($_POST['doubler_left']); + REQUEST_SET_POST('doubler_charge', REVERT_COMMA((REQUEST_POST('doubler_charge') / 100))); + REQUEST_SET_POST('doubler_ref' , REVERT_COMMA((REQUEST_POST('doubler_ref') / 100))); + REQUEST_SET_POST('doubler_min' , REVERT_COMMA(REQUEST_POST('doubler_min'))); + REQUEST_SET_POST('doubler_max' , REVERT_COMMA(REQUEST_POST('doubler_max'))); + REQUEST_SET_POST('doubler_left' , REVERT_COMMA(REQUEST_POST('doubler_left'))); // Save settings - ADMIN_SAVE_SETTINGS($_POST); + ADMIN_SAVE_SETTINGS_POST(); } else { // Prepare data for the template // - Charge rate