From: Andrew Dolgov Date: Thu, 22 Nov 2018 13:39:10 +0000 (+0300) Subject: mailer: return 0 if plugin requested to stop (-1) X-Git-Tag: 18.12~42 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ac5e55c2bdd1c986129d44bdc6ffa1ca3c743ba4;p=tt-rss.git mailer: return 0 if plugin requested to stop (-1) --- diff --git a/classes/mailer.php b/classes/mailer.php index f67690e8..974e33bc 100644 --- a/classes/mailer.php +++ b/classes/mailer.php @@ -30,8 +30,11 @@ class Mailer { foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_SEND_MAIL) as $p) { $rc = $p->hook_send_mail($this, $params); - if ($rc == 1 || $rc == -1) + if ($rc == 1) return $rc; + + if ($rc == -1) + return 0; } $headers[] = "From: $from_combined";