]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_wernis.php
Some templates renamed, fixed of double-init of extension notes:
[mailer.git] / inc / modules / admin / what-list_wernis.php
index 9ef5489abbc2546fc64bc76616e13b7eefb1babb..418e8c11e5386f1176fcc169e732124ecd7cf8cb 100644 (file)
@@ -58,26 +58,23 @@ ORDER BY
 // Are there some entries to display?
 if (SQL_NUMROWS($result) > 0) {
        // List all entries
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Translate some data and add color
-               $content['sw']               = $SW;
                $content['wernis_timestamp'] = generateDateTime($content['wernis_timestamp'], 2);
 
                // Fix empty message and status
-               if (empty($content['wernis_api_message'])) $content['wernis_api_message'] = '---';
                if (empty($content['wernis_api_status']))  $content['wernis_api_status']  = 'OK';
 
                // Append it and switch colors
                $OUT .= loadTemplate('admin_list_wernis_row', true, $content);
-               $SW = 3 - $SW;
-       }
+       } // END - while
 
        // Load main template
        loadTemplate('admin_list_wernis_main', false, $OUT);
 } else {
        // Nothing to display!
-       loadTemplate('admin_settings_saved', false, getMessage('ADMIN_WERNIS_NO_TRANSFERS'));
+       loadTemplate('admin_settings_saved', false, '{--ADMIN_WERNIS_NO_TRANSFERS--}');
 }
 
 // Free the result