]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_primera.php
Naming convention applied to language strings, new API function added:
[mailer.git] / inc / modules / admin / what-list_primera.php
index 1d9c0373d42d35eca394dc3c7b61b5601034d0d8..a70784139197351f7bce08c5549bb727eaa9dbb3 100644 (file)
@@ -56,12 +56,11 @@ 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
@@ -69,7 +68,6 @@ if (SQL_NUMROWS($result) > 0) {
 
                // Append it and switch colors
                $OUT .= loadTemplate('admin_list_primera_row', true, $content);
-               $SW = 3 - $SW;
        } // END - while
 
        // Load main template