diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-07 15:27:54 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-07 15:27:54 +0100 |
commit | a0de034e5f8ce83f6e13b57853c66a40b45efc03 (patch) | |
tree | 88442f7ff25cffbbef93a3b5212bd4d6f168ee14 /perllib/FixMyStreet/SendReport/Email.pm | |
parent | f64501ce7b89938a3f80a6cd2f1980a4ee33e68d (diff) | |
parent | 905bca8561bd85905945ddd33d6a8ae119c76e3c (diff) |
Merge branch 'issues/commercial/1118-confirm-flytipping'
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Email.pm')
-rw-r--r-- | perllib/FixMyStreet/SendReport/Email.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm index 079f8ba68..4307694a1 100644 --- a/perllib/FixMyStreet/SendReport/Email.pm +++ b/perllib/FixMyStreet/SendReport/Email.pm @@ -57,7 +57,7 @@ sub send { my $self = shift; my ( $row, $h ) = @_; - my $recips = $self->build_recipient_list( $row, $h ); + my $recips = @{$self->to} ? 1 : $self->build_recipient_list( $row, $h ); # on a staging server send emails to ourselves rather than the bodies if (FixMyStreet->staging_flag('send_reports', 0) && !FixMyStreet->test_mode) { |