]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-payout.php
'order_points' and locked are now displayed, some array elements/language ids renamed
[mailer.git] / inc / modules / member / what-payout.php
index aa9e6e516c4175c6f649607792caf42a412bed7d..280912e15a8eb94c0396d4c85650c929f8b3d1be 100644 (file)
@@ -53,7 +53,7 @@ if ((!isExtensionActive('payout')) && (!isAdmin())) {
 } // END - if
 
 // Translate point into comma
-$totalPoints = getTotalPoints(getMemberId());
+$payoutPoints = getPayoutPoints(getMemberId());
 
 if (!isGetRequestParameterSet('payout')) {
        // Load payout types
@@ -65,7 +65,7 @@ WHERE
        %s >= `min_points`
 ORDER BY
        `type` ASC",
-               array($totalPoints), __FILE__, __LINE__);
+               array($payoutPoints), __FILE__, __LINE__);
        if (!SQL_HASZERONUMS($result)) {
                // Free memory
                SQL_FREERESULT($result);
@@ -116,7 +116,7 @@ ORDER BY
                SQL_FREERESULT($result_payouts);
 
                // Output payout list
-               outputPayoutList($totalPoints);
+               outputPayoutList($payoutPoints);
        } else {
                // No payout types setup
                displayMessage('{--MEMBER_PAYOUT_SETUP_INCOMPLETE--}');
@@ -131,7 +131,7 @@ ORDER BY
                $content = SQL_FETCHARRAY($result);
 
                // Calculate maximum value
-               $max     = round($totalPoints * $content['rate'] - 0.5);
+               $max     = round($payoutPoints * $content['rate'] - 0.5);
                $PAY_MAX = '0';
 
                // Calulcate points from submitted amount
@@ -142,7 +142,7 @@ ORDER BY
                }
 
                // Has enougth points to payout?
-               if ($totalPoints >= $content['min_points']) {
+               if ($payoutPoints >= $content['min_points']) {
                        // Ok, he can get be paid
                        if ((isFormSent()) && ($points <= $PAY_MAX) && ($points >= $content['min_points'])) {
                                // Remember points in array