X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_mails.php;h=32587a5840258770dc057b5a93b2333c49854652;hb=4f7df133f736da124e6f7bd02008b9093f736451;hp=37baf61f81114e519a4835581569f23d33e13d9a;hpb=6d348813375b48ecd6344d52ec2b821046c353a9;p=mailer.git diff --git a/inc/modules/admin/what-admins_mails.php b/inc/modules/admin/what-admins_mails.php index 37baf61f81..32587a5840 100644 --- a/inc/modules/admin/what-admins_mails.php +++ b/inc/modules/admin/what-admins_mails.php @@ -1,7 +1,7 @@ 0) { + if (ifPostContainsSelections()) { // Add option for events - $GLOBALS['cache_array']['admins'] = ADD_OPTION_LINES("admins", "id", "login", "", "email"); - $SW = 2; $rowNameS = ""; - foreach (REQUEST_POST('sel') as $template => $sel) { + $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`", + $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 = ""; $aid2 = 0; + $OUT = ''; + $adminId2 = '0'; $id = '0'; while ($content = SQL_FETCHARRAY($result)) { - // @TODO Can this be rewritten??? - $OUT .= "