X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-edit_emails.php;h=fdfe3c8bc03dff42e81d8e043acbb0304ed65ac0;hb=fdfe034bd27d3d4eaf75dda77e76c8555177b076;hp=5f70cb0a83e8cfff8dd7d4332a9e5983dcc87377;hpb=ac3ce5eb46bd9f7e5f6f41b930f7ebdc17089ed2;p=mailer.git diff --git a/inc/modules/admin/what-edit_emails.php b/inc/modules/admin/what-edit_emails.php index 5f70cb0a83..fdfe3c8bc0 100644 --- a/inc/modules/admin/what-edit_emails.php +++ b/inc/modules/admin/what-edit_emails.php @@ -51,7 +51,7 @@ if ((isFormSent()) && (!isPostRequestParameterSet('id'))) { // Query the pool $result = SQL_QUERY('SELECT - `id`, `sender`, `subject`, `payment_id`, `cat_id` + `id`, `sender` AS `userid`, `subject`, `payment_id`, `cat_id` FROM `{?_MYSQL_PREFIX?}_pool` ORDER BY @@ -61,7 +61,7 @@ ORDER BY if (!SQL_HASZERONUMS($result)) { if (isFormSent()) { // Make mail editable... - $result = SQL_QUERY_ESC("SELECT `id`, `subject`, `text`, `url` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1", + $result = SQL_QUERY_ESC("SELECT `id`, `sender` AS `userid`, `subject`, `text`, `url` FROM `{?_MYSQL_PREFIX?}_pool` WHERE `id`=%s LIMIT 1", array(bigintval(postRequestParameter('id'))), __FILE__, __LINE__); // Fetch row