]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_points.php
The usual asset of bugfixes/improvements:
[mailer.git] / inc / modules / admin / what-add_points.php
index e1b3d1a5184c4966f806f17df3e2d03562ec69a8..93a1923a90de2050e126e932a05666810e3d35e4 100644 (file)
@@ -55,6 +55,9 @@ if (getRequestParameter('userid') == 'all') {
 
                // Process all entries
                while ($row = SQL_FETCHARRAY($result_main)) {
 
                // 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...
                        // 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')),
                        // 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
                        );
 
                        // Load email template and send email away