Fix of the fix... ;)
authorRoland Häder <roland@mxchange.org>
Sun, 12 Oct 2008 00:57:14 +0000 (00:57 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 12 Oct 2008 00:57:14 +0000 (00:57 +0000)
inc/databases.php
inc/modules/member/what-refback.php

index 495960040d73e2bb67891703610ae1cb0e166326..f46cbdafe11fc13a1966f3e16f6d577eff2a4fe7 100644 (file)
@@ -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);
index 90d3ad7f624c3dde64cd0f7312325f47d9cf7006..b616e223267e60e3067c3b8044c8918afe8916f2 100644 (file)
@@ -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);