A lot code rewritten:
[mailer.git] / inc / modules / member / what-wernis.php
index 4729c81f1de3cd656f1efcb93709c5032ab9a716..8cd3a295f5e5dc990327d7a0dffb951480f68b9d 100644 (file)
@@ -79,7 +79,7 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo
                        array(getMemberId()), __FILE__, __LINE__);
 
                // Load all rows
-               $content['rows'] = ''; $SW = 2;
+               $content['rows'] = '';
                while ($data = SQL_FETCHARRAY($result)) {
                        // Prepare data for output
                        $rowContent = array(
@@ -87,13 +87,11 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo
                                'wernis_amount'    => $data['wernis_amount'],
                                'wernis_account'   => $data['wernis_account'],
                                'wernis_type'      => $data['wernis_type'],
-                               'sw'               => $SW,
                        );
 
                        // Load row template
                        $content['rows'] .= loadTemplate('member_wernis_mode_list_row', true, $rowContent);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
 
                // Free result
                SQL_FREERESULT($result);