Skip to content

Commit

Permalink
results process fixes #120
Browse files Browse the repository at this point in the history
  • Loading branch information
dantheta committed Oct 31, 2021
1 parent 8c9b5ad commit 47ec19e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api/1.2/libs/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
function sendISPReport($mailname, $name, $email, $network, $url, $message, $report_type, $category, $renderer) {
if (defined('SEND_EMAIL') && SEND_EMAIL == false) {
// disable email flag for debug/testing
return;
return true;
}
$msg = new PHPMailer();
if (FEATURE_EMAIL_TRACKING) {
Expand Down Expand Up @@ -43,7 +43,7 @@ function sendISPReport($mailname, $name, $email, $network, $url, $message, $repo
function sendISPReminder($row, $network, $url, $renderer) {
if (defined('SEND_EMAIL') && SEND_EMAIL == false) {
// disable email flag for debug/testing
return;
return true;
}
$msg = new PHPMailer();

Expand Down Expand Up @@ -107,7 +107,7 @@ function sendBBFCReport($mailname, $name, $email, $network, $original_network, $

if (defined('SEND_EMAIL') && SEND_EMAIL == false) {
// disable email flag for debug/testing
return;
return true;
}

$msg = new PHPMailer();
Expand Down
2 changes: 1 addition & 1 deletion backend/process_results.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
if ($row['status'] != 'pending') {
# we might have already seen this result, if there have been multiple results for a url/network since the
# last reporting run
error_log("Report {$row['report_id']} already processed: ${row['status']}.");
error_log("Report {$result['report_id']} already processed: ${row['status']}.");
continue;
}

Expand Down

0 comments on commit 47ec19e

Please sign in to comment.