]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-edit_emails.php
New wrapper function introduced, more EL rewrites:
[mailer.git] / inc / modules / admin / what-edit_emails.php
index b18689ddeb299f100beab2e46d3234afbd41359d..0ecb55d49f33e57da838fea16c15ea682e461899 100644 (file)
@@ -58,7 +58,7 @@ ORDER BY
        `timestamp` ASC", __FILE__, __LINE__);
 
 // Entries found?
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
        if (isFormSent()) {
                // Make mail editable...
                $result = SQL_QUERY_ESC("SELECT `id`, `subject`, `text`, `url` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1",
@@ -91,7 +91,7 @@ LIMIT 1",
                        ), __FILE__, __LINE__);
 
                if (SQL_AFFECTEDROWS() == 1) {
-                       $content = getMessage('SETTINGS_SAVED');
+                       $content = '{--SETTINGS_SAVED--}';
                } else {
                        $content = '<span class="admin_failed">{--SETTINGS_NOT_SAVED--}</span>';
                }
@@ -100,14 +100,10 @@ LIMIT 1",
                loadTemplate('admin_settings_saved', false, $content);
        } else {
                // There are mail orders available
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
-                       // Add color swapping
-                       $content['sw'] = $SW;
-
                        // Load row template and switch colors
                        $OUT .= loadTemplate('admin_edit_email_row', true, $content);
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory