From: Roland Häder Date: Wed, 18 Nov 2009 04:17:52 +0000 (+0000) Subject: Fix for rewritting code X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=8888929831ab1ac7685c6e3d2ba744a9208ce745;hp=69714c9a74566fe1893e4e90a266750b6ea9ca85 Fix for rewritting code --- 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