$content['refid'] = getConfig(('wernis_refid'));
$content['wernis_userid'] = '0';
- // Are there some entries?
- if (fetchUserData(getMemberId())) {
- // Fetch id
- $content['wernis_userid'] = getUserData('wernis_userid');
- } // END - if
-
// Is there an id?
if ((!empty($content['wernis_userid'])) && (!isGetRequestElementSet('mode'))) {
// Then use an other "mode"
// Add points to content array
$content['points'] = translateComma($points);
- $content['min_points'] = translateComma(getConfig('wernis_min_payout'));
-
- // Add fees to array
- WERNIS_ADD_FEES_TO_ARRAY($content);
- // Init WDS66 userid
- $content['wernis_userid'] = '';
-
- // Are there some entries?
- if (fetchUserData(getMemberId())) {
- // Fetch id
- $content['wernis_userid'] = getUserData('wernis_userid');
- } // END - if
+ // Get WDS66 username
+ $content['wernis_userid'] = getUserData('wernis_userid');
} elseif ((getRequestElement('mode') == 'withdraw') && (getConfig('wernis_withdraw_active') == 'Y')) {
// Get total points for just displaying them
$points = countSumTotalData(getMemberId(), 'user_points', 'points') - countSumTotalData(getMemberId(), 'user_data', 'used_points');
// Prepare data for the template
$content['points'] = translateComma($points);
- $content['min_points'] = translateComma(getConfig('wernis_min_withdraw'));
$content['wernis_userid'] = '';
// Add fees to array
WERNIS_ADD_FEES_TO_ARRAY($content);
- // Get WDS66 id
- if (fetchUserData(getMemberId())) {
- // Fetch id
- $content['wernis_userid'] = getUserData('wernis_userid');
- } // END - if
+ // Fetch id
+ $content['wernis_userid'] = getUserData('wernis_userid');
} else {
// Invalid mode!
loadTemplate('admin_settings_saved', false, sprintf(getMessage('WERNIS_MEMBER_MODE_INVALID'), getRequestElement('mode')));