summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2007-09-07 03:45:18 +0000
committerivan <ivan>2007-09-07 03:45:18 +0000
commit08b8bc696d97821986839e83b354ec3eb830f2c0 (patch)
tree350c9bbe927f7c135ca2ded25b05dc5826f1fcf8
parent9720eb1f2057e9e14b5ac9df65da1b31f0e0195c (diff)
default cancellation subject so the emails work even when people don't set one in config
-rw-r--r--FS/FS/cust_pkg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index 444282ceb..ed9820af7 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -523,7 +523,7 @@ sub cancel {
my $error = send_email(
'from' => $conf->config('invoice_from'),
'to' => \@invoicing_list,
- 'subject' => $conf->config('cancelsubject'),
+ 'subject' => ( $conf->config('cancelsubject') || 'Cancellation Notice' ),
'body' => [ map "$_\n", $conf->config('cancelmessage') ],
);
#should this do something on errors?