aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2012-05-03 01:12:17 +0100
committerDave Whiteland <dave@mysociety.org>2012-05-03 01:12:17 +0100
commitf1800b4bfb998639185b586009ee45d5e7f6e6a9 (patch)
tree4bb2569a4ba9cbb5ca3ea7e8fb3c19f3ef131447
parentb9f251bad3198856d5da4e5675b545e6eabf8898 (diff)
barnet-integration branch didn't send normal emails, resinstate
-rwxr-xr-xbin/send-reports4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/send-reports b/bin/send-reports
index a0c084c1c..174bb2cbf 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -243,7 +243,7 @@ while (my $row = $unsent->next) {
}
- unless ($send_method) {
+ unless ($send_email || $send_method) {
die 'Report not going anywhere for ID ' . $row->id . '!';
}
@@ -746,4 +746,4 @@ sub update_send_fail_data {
send_fail_timestamp => \'ms_current_timestamp()',
send_fail_reason => $err_msg
} );
-} \ No newline at end of file
+}