From 11fe12273e8e4a5c0aefc433cf1c13899872fb75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 12 Oct 2008 00:57:14 +0000 Subject: [PATCH] Fix of the fix... ;) --- inc/databases.php | 2 +- inc/modules/member/what-refback.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index 495960040d..f46cbdafe1 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "496"); +define('CURR_SVN_REVISION', "497"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/modules/member/what-refback.php b/inc/modules/member/what-refback.php index 90d3ad7f62..b616e22326 100644 --- a/inc/modules/member/what-refback.php +++ b/inc/modules/member/what-refback.php @@ -60,7 +60,7 @@ if ((isset($_POST['edit'])) && (isset($_POST['id']))) { // 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_perc']) || ($_POST['percents'] == 0)) && ($_POST['percents'] <= $_CONFIG['refback_max_perc'])) { // Change ref-back for this direct id $status = REFBACK_CHANGE_MEMBER_PERCENTS($_POST['id'], $_POST['percents']); @@ -77,7 +77,7 @@ if ((isset($_POST['edit'])) && (isset($_POST['id']))) { } } else { // Percents out-of-bounds ;-) - LOAD_TEMPLATE("admin_settings_saved", false, sprintf(MEMBER_REFBACK_ERROR_OUT_OF_BOUNDS, $_CONFIG['refback_min_percents'], $_CONFIG['refback_max_percents'])); + LOAD_TEMPLATE("admin_settings_saved", false, sprintf(MEMBER_REFBACK_ERROR_OUT_OF_BOUNDS, $_CONFIG['refback_min_perc'], $_CONFIG['refback_max_perc'])); } // Insert line @@ -88,8 +88,8 @@ if ((isset($_POST['edit'])) && (isset($_POST['id']))) { // Translate comma $content['refback'] = TRANSLATE_COMMA($content['refback']); - $content['max'] = $_CONFIG['refback_max_percents']; - $content['min'] = $_CONFIG['refback_min_percents']; + $content['min'] = $_CONFIG['refback_min_perc']; + $content['max'] = $_CONFIG['refback_max_perc']; // Load form for editing LOAD_TEMPLATE("member_refback_edit", false, $content); -- 2.39.5