A lot code rewritten:
[mailer.git] / inc / modules / admin / what-list_unconfirmed.php
index 0887f450cde89cbf883d116cdb2b9ae8f77484c8..9ef88e563553176ffc2be97e1b7978411ed88b5b 100644 (file)
@@ -131,13 +131,12 @@ LIMIT %s",
 
                if ($unconfirmed > 0) {
                        // At least one link left to confirm
-                       $OUT = ''; $SW = 2;
+                       $OUT = '';
                        while ($content = SQL_FETCHARRAY($result)) {
                                // User data found? We can take any field of u.
                                if (!is_null($content['status'])) {
                                        // Prepare data for the row template
                                        $content = array(
-                                               'sw'     => $SW,
                                                'userid' => $content['userid'],
                                                'link'   => $LINK,
                                                'id'     => $ID,
@@ -148,15 +147,9 @@ LIMIT %s",
                                        // Load row template and switch colors
                                        $OUT .= loadTemplate('admin_list_unconfirmed_row', true, $content);
                                } else {
-                                       // Insert color-switch
-                                       $content['sw'] = $SW;
-
                                        // No user data found
                                        $OUT .= loadTemplate('admin_list_unconfirmed_row_404', true, $content);
                                }
-
-                               // Switch color
-                               $SW = 3 - $SW;
                        } // END - while
 
                        // Render it in our new listing