X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-refback.php;h=b69124c94ccff2c4742255905acc1e4fdedbab75;hb=30ae22f62ae87c53a56baf0d134569ba91011111;hp=3f199c71d82f25b1e181a3cbd54711fda8da9b83;hpb=29385a0483bbcbbe940a32a49d488b1d5add15c5;p=mailer.git diff --git a/inc/modules/member/what-refback.php b/inc/modules/member/what-refback.php index 3f199c71d8..b69124c94c 100644 --- a/inc/modules/member/what-refback.php +++ b/inc/modules/member/what-refback.php @@ -108,14 +108,13 @@ ORDER BY r.level ASC', __FILE__, __LINE__); // Are there some entries? (Shall be!) -if (SQL_NUMROWS($result) > 0) { +if (!SQL_HASZERONUMS($result)) { // List all levels $OUT = ''; while ($content = SQL_FETCHARRAY($result)) { // Init variables $rows = ''; $content['counter'] = 0; - $SW = 2; // Check for users ref in this level foreach (getArrayFromRefbackUserRefs(getMemberId(), $content['level']) as $refRow) { @@ -124,7 +123,6 @@ if (SQL_NUMROWS($result) > 0) { if (is_null($refRow['status'])) $deleted = true; // Add/"translate" more content - $refRow['sw'] = $SW; // @TODO UNUSED: $refRow['status'] = translateUserStatus($refRow['status']); $refRow['joined'] = generateDateTime($refRow['joined'], '3'); @@ -137,7 +135,6 @@ if (SQL_NUMROWS($result) > 0) { // Count this ref and switch color $content['counter']++; - $SW = 3 - $SW; } // END - foreach // Remember the content