X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-bonus.php;h=6f88dcfa5dac98f8651cdd73b50497f543ce1d9c;hb=6914ebaaae909093df86d010e4c754a43d1a1aed;hp=df6251fa0959d9abdbcdb7465c92dd4d674688df;hpb=7618bd22d09e9bddab2ca39308f6523c06dd1521;p=mailer.git diff --git a/inc/modules/member/what-bonus.php b/inc/modules/member/what-bonus.php index df6251fa09..6f88dcfa5d 100644 --- a/inc/modules/member/what-bonus.php +++ b/inc/modules/member/what-bonus.php @@ -94,13 +94,12 @@ LIMIT {?bonus_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'], @@ -110,8 +109,8 @@ if (SQL_NUMROWS($result) > 0) { // Load row template $OUT .= loadTemplate('member_bonus_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" ! :-(