summaryrefslogtreecommitdiff
path: root/lib/Travelynx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx')
-rw-r--r--lib/Travelynx/Helper/Sendmail.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Helper/Sendmail.pm b/lib/Travelynx/Helper/Sendmail.pm
index 19e7d05..9f19e74 100644
--- a/lib/Travelynx/Helper/Sendmail.pm
+++ b/lib/Travelynx/Helper/Sendmail.pm
@@ -28,7 +28,7 @@ sub custom {
body => encode( 'utf-8', $body ),
);
- if ( $self->{config}->{db}->{database} =~ m{travelynx_dev} ) {
+ if ( $self->{config}->{disabled} ) {
# Do not send mail in dev mode
say "sendmail to ${to}: ${subject}\n\n${body}";