A lot code rewritten:
[mailer.git] / inc / modules / member / what-payout.php
index 1283c94854c0057fbb2df63f85018afa43a51689..246e0e31402819f3977cc7501045cbc250ec5919 100644 (file)
@@ -97,7 +97,7 @@ ORDER BY
                        array(getMemberId()), __FILE__, __LINE__);
                if (SQL_NUMROWS($result_payouts) > 0) {
                        // List all his requests
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        while ($content = SQL_FETCHARRAY($result_payouts)) {
                                // Translate status
                                $content['status'] = translatePayoutStatus();
@@ -118,7 +118,6 @@ ORDER BY
 
                                // Prepare data for the template
                                $content = array(
-                                       'sw'               => $SW,
                                        'target_account'   => $content['target_account'],
                                        'payout_total'     => $content['payout_total'],
                                        'target_bank'      => $content['target_bank'],
@@ -129,12 +128,11 @@ ORDER BY
 
                                // Load row template and switch colors
                                $OUT .= loadTemplate('member_payout_row', true, $content);
-                               $SW = 3 - $SW;
-                       }
+                       } // END - while
 
                        // Load template
                        loadTemplate('member_payout', false, $OUT);
-               }
+               } // END - if
 
                // Free memory
                SQL_FREERESULT($result_payouts);