From 23b6a464defc51c7a081d3c83e244a690643752d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 18 Nov 2009 04:24:23 +0000 Subject: [PATCH 1/1] Fix for rewritting code #3 --- inc/modules/admin/what-admins_mails.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inc/modules/admin/what-admins_mails.php b/inc/modules/admin/what-admins_mails.php index 21ad2e4bdb..d07a7d120e 100644 --- a/inc/modules/admin/what-admins_mails.php +++ b/inc/modules/admin/what-admins_mails.php @@ -52,7 +52,7 @@ if (isPostRequestElementSet('edit')) { $SW = 2; $rowNameS = ''; foreach (postRequestElement('sel') as $template => $sel) { // First of all load data from DB - $result = SQL_QUERY_ESC("SELECT `admin_id`, `id`, `mail_template` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `id` ASC", + $result = SQL_QUERY_ESC("SELECT `admin_id`, `id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `id` ASC", array($template), __FILE__, __LINE__); $OUT = ''; $adminId2 = '0'; @@ -79,8 +79,9 @@ if (isPostRequestElementSet('edit')) { SQL_FREERESULT($result); // Prepare content - $content['sw'] = $SW; - $content['admins'] = $adminsList; + $content['sw'] = $SW; + $content['mail_template'] = $template; + $content['admins'] = $adminsList; if ($adminId2 > 0) { // Add form for an additional admin -- 2.30.2