// 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...
// 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