From a72fa4121824e4836312f5a653338b2d4e62bf64 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 4 Jun 2015 00:06:26 -0500 Subject: [PATCH] oops: Fix crash processing fetched mail --- include/class.mailfetch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.mailfetch.php b/include/class.mailfetch.php index d1ad8fbec..d4d2029cb 100644 --- a/include/class.mailfetch.php +++ b/include/class.mailfetch.php @@ -762,7 +762,7 @@ class MailFetcher { } // Allow continuation of thread without initial message or note elseif (($thread = Thread::lookupByEmailHeaders($vars)) - && ($message = $entry->postEmail($vars)) + && ($message = $thread->postEmail($vars)) ) { // NOTE: This might not be a "ticket" $ticket = $thread->getObject(); -- GitLab