]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-beg2.php
More language strings renamed, TODOs.txt updated:
[mailer.git] / inc / modules / member / what-beg2.php
index b6632bb791273dcd4bd802b935bdcda02500a930..a0ff700d637b9f85fc45ea9e9e22965739a755c2 100644 (file)
@@ -53,13 +53,12 @@ if ((!isExtensionActive('beg')) && (!isAdmin())) {
 } // END - if
 
 // Autopurge installed?
-$lastOnline = "%s";
+$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 = '{?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'...
@@ -82,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'],
@@ -98,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" ! :-(