X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-reflist.php;h=cc34322a0320c6aa8e00632a17d3b4f01260af2a;hb=34db702d004b245e5528b0ba20c6de441f61820a;hp=0740acbdef23b4b3147061846f01e0563b16dace;hpb=58bd7e0df5e4bee593b7ad46d66d3b1acbec2886;p=mailer.git diff --git a/inc/modules/member/what-reflist.php b/inc/modules/member/what-reflist.php index 0740acbdef..cc34322a03 100644 --- a/inc/modules/member/what-reflist.php +++ b/inc/modules/member/what-reflist.php @@ -59,19 +59,17 @@ ORDER BY `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 = ''; $counter = '0'; - $SW = 2; // Check for users ref in this level foreach (getUserReferalPoints(getMemberId(), $content['level']) as $refRow) { // Add/"translate" more content - $refRow['sw'] = $SW; $refRow['clickrate'] = translateComma($refRow['clickrate'], true, 1); // Load row template @@ -79,7 +77,6 @@ if (SQL_NUMROWS($result) > 0) { // Count this ref and switch color $counter++; - $SW = 3 - $SW; } // END - foreach // Remember the content