summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2004-03-12 08:17:50 +0000
committerivan <ivan>2004-03-12 08:17:50 +0000
commit400bf2b9a75f802afd28a43a0fbd2354eebcf833 (patch)
tree76892db3a1470e06f0e4c734084047089e0e7162 /FS
parentc9feafc6adba0455c2bc701c6524742df5c940bf (diff)
emaildecline-exclude skips any errors that contain the strings now, not just match exactly
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_bill.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 1c3941b21..6f2f01e33 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -896,7 +896,7 @@ sub realtime_bop {
if ( !$realtime_bop_decline_quiet && $conf->exists('emaildecline')
&& grep { $_ ne 'POST' } $cust_main->invoicing_list
- && ! grep { $_ eq $transaction->error_message }
+ && ! grep { $transaction->error_message =~ /$_/ }
$conf->config('emaildecline-exclude')
) {
my @templ = $conf->config('declinetemplate');