]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/register_functions.php
A lot code rewritten:
[mailer.git] / inc / libs / register_functions.php
index 46bca1b36340f3401e343e0ca1e2a986b11a2920..89539ff5461a68658e4522d65f5888a0b97d1303 100644 (file)
@@ -89,12 +89,10 @@ function registerGenerateCategoryTable ($mode, $return=false) {
 
        if (SQL_NUMROWS($result) > 0) {
                // List alle visible modules (or all to the admin)
-               $SW = 2;
                $OUT .= '<table border="0" cellspacing="0" cellpadding="0" width="100%">';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare array for the template
                        $content = array(
-                               'sw'    => $SW,
                                'cat'   => $content['cat'],
                                'def_y' => '',
                                'def_n' => '',
@@ -110,8 +108,7 @@ function registerGenerateCategoryTable ($mode, $return=false) {
 
                        // Load template and switch color
                        $OUT .= loadTemplate('guest_cat_row', true, $content);
-                       $SW = 3 - $SW;
-               }
+               } // END - while
                $OUT .= '</table>';
 
                // Free memory