X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-sub_points.php;h=6b3f0a5267f57397d2fd4c1621bf9bf4ce51823b;hb=11a9294db20070dc0c2f578d3a91b69cc7c1182d;hp=715ae4df2fe6de66d1dc34b37b4c5bfb481d1557;hpb=82cbb1b75e0091b6333fefd045903329b234b9fb;p=mailer.git diff --git a/inc/modules/admin/what-sub_points.php b/inc/modules/admin/what-sub_points.php index 715ae4df2f..6b3f0a5267 100644 --- a/inc/modules/admin/what-sub_points.php +++ b/inc/modules/admin/what-sub_points.php @@ -50,7 +50,7 @@ if (getRequestParameter('userid') == 'all') { $content['points'] = bigintval(postRequestParameter('points')); // Load userid - $result_main = SQL_QUERY("SELECT userid, email FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC", + $result_main = SQL_QUERY("SELECT `userid`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC", __FILE__, __LINE__); while ($row = SQL_FETCHARRAY($result_main)) { // Merge both arrays @@ -67,7 +67,7 @@ if (getRequestParameter('userid') == 'all') { // Load message and send it away $message = loadEmailTemplate('member_sub_points', $content, bigintval($content['userid'])); - sendEmail($content['email'], '{--ADMIN_SUB_SUBJECT--}', $message); + sendEmail($row['userid'], '{--ADMIN_SUB_SUBJECT--}', $message); } // END - while // Free memory @@ -97,7 +97,7 @@ if (getRequestParameter('userid') == 'all') { // Load email and send it away $message = loadEmailTemplate('member_sub_points', $content, bigintval(getRequestParameter('userid'))); - sendEmail($content['email'], '{--ADMIN_SUB_SUBJECT--}', $message); + sendEmail(getRequestParameter('userid'), '{--ADMIN_SUB_SUBJECT--}', $message); // Output message displayMessage('{--ADMIN_POINTS_SUBTRACTED--}');