X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_mails.php;h=3f4159727d4e8c36ae765cc537c40ff508b2b7fb;hp=52079ff988879701020c0e8161cbe43be15c5b71;hb=8888929831ab1ac7685c6e3d2ba744a9208ce745;hpb=69714c9a74566fe1893e4e90a266750b6ea9ca85 diff --git a/inc/modules/admin/what-admins_mails.php b/inc/modules/admin/what-admins_mails.php index 52079ff988..3f4159727d 100644 --- a/inc/modules/admin/what-admins_mails.php +++ b/inc/modules/admin/what-admins_mails.php @@ -54,7 +54,8 @@ if (isPostRequestElementSet('edit')) { // 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", array($template), __FILE__, __LINE__); - $OUT = ''; $adminId2 = '0'; + $OUT = ''; + $adminId2 = '0'; while ($content = SQL_FETCHARRAY($result)) { // @TODO Can this be rewritten??? $OUT .= "\n
\n"; - $adminId2 = $content['admin_id']; $id2 = $content['id']; - } + + // Transfer ids + $adminId2 = $content['admin_id']; + $id2 = $content['id']; + } // END - while // Free memory SQL_FREERESULT($result); // Prepare content - $content = array( - 'sw' => $SW, - 'id' => $id, - 'id2' => $id2, - 'tpl' => $template, - 'admins' => $adminsList - ); + $content['sw'] = $SW; + $content['admins'] = $adminsList; if ($adminId2 > 0) { // Add form for an additional admin