// Okay, has the user entered some values?
if (isset($_POST['percents'])) {
// Validate percents
- if (($_POST['percents'] >= $_CONFIG['refback_min_percents']) || ($_POST['percents'] == 0)) && ($_POST['percents'] <= $_CONFIG['refback_max_percents'])) {
+ if ((($_POST['percents'] >= $_CONFIG['refback_min_percents']) || ($_POST['percents'] == 0)) && ($_POST['percents'] <= $_CONFIG['refback_max_percents'])) {
// 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['max'] = $_CONFIG['refback_max_percents'];
+ $content['min'] = $_CONFIG['refback_min_percents'];
// Load form for editing
LOAD_TEMPLATE("member_refback_edit", false, $content);