A lot code rewritten:
[mailer.git] / inc / modules / admin / what-list_holiday.php
index 414c89f6b09e26c5d4fbc0c4ab8695b4332bb0ae..b6573bb1dd6872fa60dc75dda0497d6ecb899580 100644 (file)
@@ -59,11 +59,10 @@ ORDER BY
 
 if (SQL_NUMROWS($result) > 0) {
        // List all holiday requests
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the row template
                $content = array(
-                       'sw'          => $SW,
                        'id'          => $content['id'],
                        'userid'      => $content['userid'],
                        'start'       => generateDateTime($content['holiday_start'], 3),
@@ -75,7 +74,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Load row template and switch color
                $OUT .= loadTemplate('admin_list_holiday_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Free memory