X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-refback.php;h=70967c9f6aea2a35932c50fd1241cb2e901ce143;hp=10f9907e76f3d94e1ba8c3209df12290b9f4f51f;hb=0715fa7aa8e5e70bcf1d957fb09ae655c3896c4e;hpb=33989fa4a558317899c3e68cb51e1be552c4ce8e diff --git a/inc/modules/member/what-refback.php b/inc/modules/member/what-refback.php index 10f9907e76..70967c9f6a 100644 --- a/inc/modules/member/what-refback.php +++ b/inc/modules/member/what-refback.php @@ -94,9 +94,6 @@ if ((isFormSent('edit')) && (isPostRequestParameterSet('id'))) { // Read data from refback table $content = getArrayFromUserRefbackData(postRequestParameter('id')); - // Translate comma - $content['refback'] = translateComma($content['refback']); - // Load form for editing loadTemplate('member_refback_edit', false, $content); } @@ -120,7 +117,7 @@ if (SQL_NUMROWS($result) > 0) { while ($content = SQL_FETCHARRAY($result)) { // Init variables $rows = ''; - $counter = '0'; + $content['counter'] = 0; $SW = 2; // Check for users ref in this level @@ -131,9 +128,7 @@ if (SQL_NUMROWS($result) > 0) { // Add/"translate" more content $refRow['sw'] = $SW; - $refRow['points'] = translateComma($refRow['points']); - $refRow['refback'] = translateComma($refRow['refback']); - // UNUSED: $refRow['status'] = translateUserStatus($refRow['status']); + // @TODO UNUSED: $refRow['status'] = translateUserStatus($refRow['status']); $refRow['joined'] = generateDateTime($refRow['joined'], '3'); if (empty($refRow['nickname'])) $refRow['nickname'] = '---'; @@ -145,13 +140,11 @@ if (SQL_NUMROWS($result) > 0) { } // Count this ref and switch color - $counter++; + $content['counter']++; $SW = 3 - $SW; } // END - foreach // Remember the content - $content['counter'] = translateComma($counter); - $content['percents'] = translateComma($content['percents']); $content['rows'] = $rows; // Load level template @@ -168,5 +161,5 @@ if (SQL_NUMROWS($result) > 0) { // Free result SQL_FREERESULT($result); -// +// [EOF] ?>