Fix for rewritting code #4
[mailer.git] / inc / modules / admin / what-admins_mails.php
index d07a7d120eec2591ea76413cc94403830b6b465b..fc6a658a08cfdbdfff47cbf3fe7439b27c504b2e 100644 (file)
@@ -49,7 +49,7 @@ if (isPostRequestElementSet('edit')) {
        if (countPostSelection() > 0) {
                // Add option for events
                $adminsList = generateOptionList('admins', 'id', 'login', '', 'email');
-               $SW = 2; $rowNameS = '';
+               $SW = 2; $rows = '';
                foreach (postRequestElement('sel') as $template => $sel) {
                        // First of all load data from DB
                        $result = SQL_QUERY_ESC("SELECT `admin_id`, `id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `id` ASC",
@@ -92,12 +92,12 @@ if (isPostRequestElementSet('edit')) {
                        $content['content'] = $OUT;
 
                        // Start outputing line
-                       $rowNameS .= loadTemplate('admin_admins_mails_edit_row', true, $content);
+                       $rows .= loadTemplate('admin_admins_mails_edit_row', true, $content);
                        $SW = 3 - $SW;
                }
 
                // Edit checked entries
-               loadTemplate('admin_admins_mails_edit', false, $rowNameS);
+               loadTemplate('admin_admins_mails_edit', false, $rows);
        } else {
                // Nothing selected
                loadTemplate('admin_settings_saved', false, getMessage('ADMINS_NO_MAIL_CHECKED'));