Skip to content
Snippets Groups Projects
Commit ce8aadf8 authored by JediKev's avatar JediKev
Browse files

oops: .eml/.msg Missing Not Operator

This addresses a typo where we are missing a not operator in class
MailFetcher when checking for no `$body` in the fetched attachments. This
adds the not operator so that the `if()` statement is properly executed and
we correctly set a fake body when there is none.
parent 91602a7e
No related branches found
No related tags found
No related merge requests found
...@@ -701,7 +701,7 @@ class MailFetcher { ...@@ -701,7 +701,7 @@ class MailFetcher {
$body = $this->fetchBody($mid, $info['index'].'.0', $body = $this->fetchBody($mid, $info['index'].'.0',
$info['encoding']); $info['encoding']);
// Add fake body to make the parser happy // Add fake body to make the parser happy
if ($body) if (!$body)
$body.="\n\nJunk"; $body.="\n\nJunk";
$parser = new Mail_Parse($body); $parser = new Mail_Parse($body);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment