From bdfb2f1338f463f557424123b2cf7a254dd580d3 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Tue, 15 Apr 2014 16:51:45 -0500 Subject: [PATCH] oops: Don't crash when sending fatal alert email --- include/class.mailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.mailer.php b/include/class.mailer.php index 4adc2c4b2..50561652f 100644 --- a/include/class.mailer.php +++ b/include/class.mailer.php @@ -157,7 +157,7 @@ class Mailer { $mid_token = (isset($options['thread'])) ? $options['thread']->asMessageId($to) : ''; if (!(isset($options['text']) && $options['text'])) { - if ($cfg->stripQuotedReply() && ($tag=$cfg->getReplySeparator()) + if ($cfg && $cfg->stripQuotedReply() && ($tag=$cfg->getReplySeparator()) && (!isset($options['reply-tag']) || $options['reply-tag'])) $message = "<div style=\"display:none\" data-mid=\"$mid_token\">$tag<br/><br/></div>$message"; -- GitLab