summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-03 13:59:53 +0300
committerAndrew Dolgov <[email protected]>2021-03-03 13:59:53 +0300
commit3d904dc8f34d1479ed949c26d9f871dcaabcfb34 (patch)
treeb8125a004d246e2b12cf2bf8fac4b44458b04af5
parentc86e2423b926456b84c9a651f55a191e4eeab81a (diff)
block further processing if email sending failed
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 25cf309..c57ef39 100644
--- a/init.php
+++ b/init.php
@@ -103,7 +103,7 @@ class mailer_smtp extends Plugin {
if (!$rc)
$mailer->set_error($rc . " " . $phpmailer->ErrorInfo);
- return $rc;
+ return $rc ? $rc : -1;
}
}