A lot code rewritten:
[mailer.git] / inc / modules / admin / what-list_yoomedia_tm.php
index bc9a516af7f44e5e77812041d6b7ba0ffd610535..47f708b9f6eef302f8f8cbbc94be5465c9c84975 100644 (file)
@@ -95,11 +95,10 @@ if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id'])))
 }
 
 // Prepare all entries
-$OUT = ''; $SW = 2;
+$OUT = '';
 foreach ($result as $entry) {
        // Translate some data
        $entry['pay']    = translateComma($entry['pay'], true, 5);
-       $entry['sw']     = $SW;
 
        // Check reload lock
        $reload = YOOMEDIA_CHECK_RELOAD($entry['id'], $entry['reload'], 'textmail');
@@ -133,10 +132,7 @@ foreach ($result as $entry) {
                // Load row template with buttons
                $OUT .= loadTemplate('admin_list_yoomedia_tm_row', true, $entry);
        }
-
-       // Switch color
-       $SW = 3 - $SW;
-} // END - if
+} // END - foreach
 
 // Load main template
 loadTemplate('admin_list_yoomedia_tm', false, $OUT);