]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
More rewrites to make lesser use of getMessage()
[mailer.git] / inc / libs / bonus_functions.php
index a24098887de088d14855bdc9575cb914b22d8747..dfe22f5b08a3c21676158b6eb65078e3f1936683 100644 (file)
@@ -155,9 +155,6 @@ function addBonusRanks ($data, $type, $userid) {
                // Start generating the ranking list
                $max = SQL_NUMROWS($result);
 
-               // Init variables
-               $SW = 2;
-
                // Output all ranks (levels)
                for ($rank = 1; $rank <= $max; $rank++) {
                        // Load data
@@ -195,13 +192,9 @@ LIMIT 1",
 
                        // Add more
                        $rows['rank'] = $rank;
-                       $rows['sw']   = $SW;
 
                        // Load row template
                        $OUT .= loadTemplate('member_bonus_turbo_row', true, $rows);
-
-                       // Switch color
-                       $SW = 3 - $SW;
                } // END - for
 
                if ($self === false) {