X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_doubler.php;h=48ab8b8cacebc239354325cd20ca0a5bec9064d4;hp=42bbc12e74f992f41b11c2267b29f4af0af56074;hb=b3f82be7e5ecc294acfe9c00ef75e3dc0c8b43d1;hpb=1c84af63a717e3fb454a790b8391d84a4727952d diff --git a/inc/modules/admin/what-config_doubler.php b/inc/modules/admin/what-config_doubler.php index 42bbc12e74..48ab8b8cac 100644 --- a/inc/modules/admin/what-config_doubler.php +++ b/inc/modules/admin/what-config_doubler.php @@ -42,11 +42,11 @@ ADD_DESCR("admin", basename(__FILE__)); if (isset($_POST['ok'])) { // Replace commata with decimal dot - $_POST['doubler_charge'] = str_replace(",", ".", ($_POST['doubler_charge'] / 100)); - $_POST['doubler_ref'] = str_replace(",", ".", ($_POST['doubler_ref'] / 100)); - $_POST['doubler_min'] = str_replace(",", ".", $_POST['doubler_min']); - $_POST['doubler_max'] = str_replace(",", ".", $_POST['doubler_max']); - $_POST['doubler_left'] = str_replace(",", ".", $_POST['doubler_left']); + $_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']); // Save settings ADMIN_SAVE_SETTINGS($_POST);