} // END - if
// Translate point into comma
-$totalPoints = getTotalPoints(getMemberId());
+$payoutPoints = getPayoutPoints(getMemberId());
if (!isGetRequestParameterSet('payout')) {
// Load payout types
%s >= `min_points`
ORDER BY
`type` ASC",
- array($totalPoints), __FILE__, __LINE__);
+ array($payoutPoints), __FILE__, __LINE__);
if (!SQL_HASZERONUMS($result)) {
// Free memory
SQL_FREERESULT($result);
SQL_FREERESULT($result_payouts);
// Output payout list
- outputPayoutList($totalPoints);
+ outputPayoutList($payoutPoints);
} else {
// No payout types setup
displayMessage('{--MEMBER_PAYOUT_SETUP_INCOMPLETE--}');
$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
}
// 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