Skip to content
Snippets Groups Projects
Commit 75c686ea authored by Jared Hancock's avatar Jared Hancock
Browse files

email: Fix possible crash if no body in email

parent 30472267
No related branches found
No related tags found
No related merge requests found
...@@ -541,7 +541,8 @@ class MailFetcher { ...@@ -541,7 +541,8 @@ class MailFetcher {
$body = new TextThreadBody( $body = new TextThreadBody(
Format::html2text(Format::safe_html($html), Format::html2text(Format::safe_html($html),
100, false)); 100, false));
else
if (!isset($body))
$body = new TextThreadBody(''); $body = new TextThreadBody('');
if ($cfg->stripQuotedReply()) if ($cfg->stripQuotedReply())
......
...@@ -292,7 +292,8 @@ class Mail_Parse { ...@@ -292,7 +292,8 @@ class Mail_Parse {
$body = new TextThreadBody( $body = new TextThreadBody(
Format::html2text(Format::safe_html($html), Format::html2text(Format::safe_html($html),
100, false)); 100, false));
else
if (!isset($body))
$body = new TextThreadBody(''); $body = new TextThreadBody('');
if ($cfg && $cfg->stripQuotedReply()) if ($cfg && $cfg->stripQuotedReply())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment