$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';
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