]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_bonus.php
A lot code rewritten:
[mailer.git] / inc / modules / admin / what-list_bonus.php
index a2d500a129cfb1d8f052d811b7f85e6b87ba7e94..5b295dd7e5f2eccc921701dc3e65a265c5fa7d3b 100644 (file)
@@ -93,7 +93,7 @@ ORDER BY
 
        if (SQL_NUMROWS($result) > 0) {
                // List users
-               $OUT = '';$SW = 2; $cnt = 1; $total = '0';
+               $OUT = ''; $cnt = 1; $total = '0';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Add total points
                        $total += $content['points'];
@@ -109,14 +109,13 @@ ORDER BY
                        // Prepare content
                        $content['email']       = generateEmailLink($content['email'], 'user_data');
                        $content['last_online'] = generateDateTime($content['last_online'], 2);
-                       $content['sw']     = $SW;
                        $content['win1']   = $WIN1;
                        $content['win2']   = $WIN2;
                        $content['cnt']    = $cnt;
 
                        // Load template and add it
                        $OUT .= loadTemplate('admin_list_bonus_rows', true, $content);
-                       $SW = 3 - $SW; $cnt++;
+                       $cnt++;
                } // END - while
 
                $content['rows']  = $OUT;