X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-bonus.php;h=c6191e92ff26630f05dd7739255d0263d221d83b;hb=968b5160ae624519f1a9491f00e0aeadf25729fb;hp=0125ce192d1327cb17828e55d3e1386545f476cf;hpb=60c415b4e890472115cc0ad0f62290e7af71d205;p=mailer.git diff --git a/inc/modules/member/what-bonus.php b/inc/modules/member/what-bonus.php index 0125ce192d..c6191e92ff 100644 --- a/inc/modules/member/what-bonus.php +++ b/inc/modules/member/what-bonus.php @@ -71,8 +71,7 @@ if (isExtensionInstalledAndNewer('bonus', '0.6.9')) { $lastOnline = '%s'; $ONLINE = ''; if (isExtensionActive('autopurge')) { // Use last online timestamp to keep inactive members away from here - $lastOnline = " AND `last_online` >= (UNIX_TIMESTAMP() - %s)"; - $ONLINE = getConfig('ap_inactive_since'); + $lastOnline = " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})"; } // END - if // Let's check if there are some points left we can 'pay'... @@ -97,11 +96,10 @@ LIMIT {?bonus_ranks?}", $OUT = ''; if (SQL_NUMROWS($result) > 0) { // 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'], @@ -111,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" ! :-(