summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/F2M.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/F2M.php b/src/F2M.php
index 7417ad2..519cff3 100644
--- a/src/F2M.php
+++ b/src/F2M.php
@@ -9,6 +9,13 @@ catch (Exception $e) {
function send_to_lists($user, $mode, $data, $post_data) {
+/*
+ print '<p>';
+ var_dump($data);
+ var_dump($post_data);
+ print '</p>';
+*/
+
require_once('Mail.php');
require_once(__DIR__ . '/Bridge.php');
@@ -48,7 +55,7 @@ function send_to_lists($user, $mode, $data, $post_data) {
$references = null;
if ($mode == 'reply') {
- $firstId = $post['topic_first_post_id'];
+ $firstId = $data['topic_first_post_id'];
$firstMessageId = $bridge->getMessageId($firstId);
if ($firstMessageId === null) {
throw new Exception('unrecognized post id: ' . $firstId);
@@ -63,13 +70,6 @@ function send_to_lists($user, $mode, $data, $post_data) {
$body = $data['message'];
-/*
- print '<p>';
- var_dump($data);
- var_dump($post_data);
- print '</p>';
-*/
-
# Assemble the message headers
$headers = array(
'To' => $to,