]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_primera.php
More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / modules / admin / what-list_primera.php
index f7e11891e7f6f283ddd7ad2f03e8fc7cbfd75e78..a70784139197351f7bce08c5549bb727eaa9dbb3 100644 (file)
@@ -56,21 +56,18 @@ ORDER BY
        __FILE__, __LINE__);
 
 // Are there some entries to display?
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
        // List all entries
-       $OUT = ''; $SW = 2;
+       $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Translate some data and add color
-               $content['sw']                = $SW;
                $content['primera_timestamp'] = generateDateTime($content['primera_timestamp'], 2);
 
                // Fix empty message and status
-               if (empty($content['primera_api_message'])) $content['primera_api_message'] = '---';
                if (empty($content['primera_api_status']))  $content['primera_api_status']  = 'OK';
 
                // Append it and switch colors
                $OUT .= loadTemplate('admin_list_primera_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Load main template