A lot code rewritten:
[mailer.git] / inc / modules / admin / what-chk_regs.php
index 55ccb052874baf94c4b42f651a6a148ead43758f..4760a601053b0ea48bfbe2ffdf2822764f2dc70b 100644 (file)
@@ -57,11 +57,10 @@ ORDER BY
 
 if (SQL_NUMROWS($result) > 0) {
        // We have some (new?) registrations!
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare array for the row template
                $content = array(
-                       'sw'          => $SW,
                        'gender'      => $content['gender'],
                        'surname'     => $content['surname'],
                        'family'      => $content['family'],
@@ -74,8 +73,7 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_list_chk_reg_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - while
 
        // Load main template
        loadTemplate('admin_list_chk_reg', false, $OUT);