]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_sponsor.php
A lot code rewritten:
[mailer.git] / inc / modules / admin / what-list_sponsor.php
index 72559cd0692078b9832d9ae892f5f93d27fc110b..7a32072205f7bf817be500aa38423e4acea838c1 100644 (file)
@@ -131,12 +131,11 @@ ORDER BY
 
        if (SQL_NUMROWS($result_main) > 0) {
                // At least one sponsor found!
 
        if (SQL_NUMROWS($result_main) > 0) {
                // At least one sponsor found!
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Transfer data to array
                        $content = array(
                                'id'              => $content['id'],
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Transfer data to array
                        $content = array(
                                'id'              => $content['id'],
-                               'sw'              => $SW,
                                'gender'          => $content['gender'],
                                'surname'         => $content['surname'],
                                'family'          => $content['family'],
                                'gender'          => $content['gender'],
                                'surname'         => $content['surname'],
                                'family'          => $content['family'],
@@ -150,8 +149,7 @@ ORDER BY
 
                        // Load row template
                        $OUT .= loadTemplate('admin_list_sponsor_row', true, $content);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_list_sponsor_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
 
                // Free memory
                SQL_FREERESULT($result_main);
 
                // Free memory
                SQL_FREERESULT($result_main);