X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-beg2.php;h=a0ff700d637b9f85fc45ea9e9e22965739a755c2;hb=6c0abc9f643c69610fe87be0ddb1a5dab95c6d39;hp=c13931a6cac0846dd018d0044fc2689ec721c861;hpb=7618bd22d09e9bddab2ca39308f6523c06dd1521;p=mailer.git diff --git a/inc/modules/member/what-beg2.php b/inc/modules/member/what-beg2.php index c13931a6ca..a0ff700d63 100644 --- a/inc/modules/member/what-beg2.php +++ b/inc/modules/member/what-beg2.php @@ -81,13 +81,12 @@ LIMIT {?beg_ranks?}", // Reset temporary variable and check for users $OUT = ''; -if (SQL_NUMROWS($result) > 0) { +if (!SQL_HASZERONUMS($result)) { // Load our winners... - $SW = 2; $cnt = 1; + $cnt = 1; while ($content = SQL_FETCHARRAY($result)) { // Prepare data for the template $content = array( - 'sw' => $SW, 'cnt' => $cnt, 'userid' => $content['userid'], 'points' => $content['points'], @@ -97,8 +96,8 @@ if (SQL_NUMROWS($result) > 0) { // Load row template $OUT .= loadTemplate('member_list_beg_row', true, $content); - // Count one up and switch colors - $cnt++; $SW = 3 - $SW; + // Count one up + $cnt++; } // END - while } else { // No one is interested in our "active rallye" ! :-(