X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_bonus.php;h=961168604c62d4f30368044e7e44c5e4909faf52;hp=9e4641d08ba8d59214ea3212055bd3fc642960e0;hb=b3f82be7e5ecc294acfe9c00ef75e3dc0c8b43d1;hpb=1c84af63a717e3fb454a790b8391d84a4727952d diff --git a/inc/modules/admin/what-config_bonus.php b/inc/modules/admin/what-config_bonus.php index 9e4641d08b..961168604c 100644 --- a/inc/modules/admin/what-config_bonus.php +++ b/inc/modules/admin/what-config_bonus.php @@ -43,17 +43,17 @@ ADD_DESCR("admin", basename(__FILE__)); if (isset($_POST['ok'])) { // Replace german decimal commas to computer decimal dots - $_POST['login_bonus'] = str_replace(",", ".", $_POST['login_bonus'] ); - $_POST['turbo_bonus'] = str_replace(",", ".", $_POST['turbo_bonus'] ); - $_POST['bonus_ref'] = str_replace(",", ".", $_POST['bonus_ref'] ); - $_POST['bonus_order'] = str_replace(",", ".", $_POST['bonus_order'] ); - $_POST['bonus_notify_points'] = str_replace(",", ".", $_POST['bonus_notify_points']); + $_POST['login_bonus'] = REVERT_COMMA($_POST['login_bonus'] ); + $_POST['turbo_bonus'] = REVERT_COMMA($_POST['turbo_bonus'] ); + $_POST['bonus_ref'] = REVERT_COMMA($_POST['bonus_ref'] ); + $_POST['bonus_order'] = REVERT_COMMA($_POST['bonus_order'] ); + $_POST['bonus_notify_points'] = REVERT_COMMA($_POST['bonus_notify_points']); // Generate string for saving ranks $_POST['turbo_rates'] = ""; $RATES = array(); foreach ($_POST['rate'] as $rate) { - $rate = trim(str_replace(",", ".", $rate)); + $rate = trim(REVERT_COMMA($rate)); if (isset($rate)) $RATES[] = $rate; } $_POST['turbo_rates'] = trim(implode(";", $RATES));