if ((isset($_POST['edit'])) && (isset($_POST['id']))) {
// Okay, has the user entered some values?
if (isset($_POST['percents'])) {
+ // Revert german commta for testing
+ $percents = REVERT_COMMA($_POST['percents']);
+
// Validate percents
- if ((($_POST['percents'] >= $_CONFIG['refback_min_perc']) || ($_POST['percents'] == 0)) && ($_POST['percents'] <= $_CONFIG['refback_max_perc'])) {
+ if ((($percents >= $_CONFIG['refback_min_perc']) || (round($percents) == 0)) && ($percents <= $_CONFIG['refback_max_perc'])) {
// Change ref-back for this direct id
$status = REFBACK_CHANGE_MEMBER_PERCENTS($_POST['id'], $_POST['percents']);
// Translate comma
$content['refback'] = TRANSLATE_COMMA($content['refback']);
- $content['min'] = $_CONFIG['refback_min_perc'];
- $content['max'] = $_CONFIG['refback_max_perc'];
+ $content['min'] = TRANSLATE_COMMA($_CONFIG['refback_min_perc'].".0", true, 1);
+ $content['max'] = TRANSLATE_COMMA($_CONFIG['refback_max_perc'].".0", true, 1);
// Load form for editing
LOAD_TEMPLATE("member_refback_edit", false, $content);