More use of REVERT_COMMA() fixes problems
[mailer.git] / inc / modules / admin / what-config_beg.php
index 40d412e6b200c50db128ec27721d51983cc90874..5342beb5ad4a77e051c4c70c38f1ae8d4573f7a5 100644 (file)
@@ -43,9 +43,9 @@ ADD_DESCR("admin", basename(__FILE__));
 if (isset($_POST['ok']))
 {
        // Translate german decimal commas to computer decimal dots
 if (isset($_POST['ok']))
 {
        // Translate german decimal commas to computer decimal dots
-       $_POST['beg_points']       = str_replace(",", ".", $_POST['beg_points']      );
-       $_POST['beg_points_max']   = str_replace(",", ".", $_POST['beg_points_max']  );
-       $_POST['beg_notify_bonus'] = str_replace(",", ".", $_POST['beg_notify_bonus']);
+       $_POST['beg_points']       = REVERT_COMMA($_POST['beg_points']      );
+       $_POST['beg_points_max']   = REVERT_COMMA($_POST['beg_points_max']  );
+       $_POST['beg_notify_bonus'] = REVERT_COMMA($_POST['beg_notify_bonus']);
 
        // Save settings
        ADMIN_SAVE_SETTINGS($_POST);
 
        // Save settings
        ADMIN_SAVE_SETTINGS($_POST);