X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-add_points.php;h=93a1923a90de2050e126e932a05666810e3d35e4;hp=e1b3d1a5184c4966f806f17df3e2d03562ec69a8;hb=c529712f8b52273e47c3d6c49af890cb9eb9a3da;hpb=34297125f617f854d2cc009d3cc4f16b6581a1f5 diff --git a/inc/modules/admin/what-add_points.php b/inc/modules/admin/what-add_points.php index e1b3d1a518..93a1923a90 100644 --- a/inc/modules/admin/what-add_points.php +++ b/inc/modules/admin/what-add_points.php @@ -55,6 +55,9 @@ if (getRequestParameter('userid') == 'all') { // Process all entries while ($row = SQL_FETCHARRAY($result_main)) { + // Merge $row into $content + $content = merge_array($content, $row); + // Remove depth to prevent booking errors. This is a bad coding // practice, thats also why we need to write this project from // scratch... @@ -66,7 +69,8 @@ if (getRequestParameter('userid') == 'all') { // Prepare content $content = array( 'reason' => SQL_ESCAPE(postRequestParameter('reason')), - 'points' => bigintval(postRequestParameter('points')) + 'points' => bigintval(postRequestParameter('points')), + 'userid' => $row['userid'] ); // Load email template and send email away