Skip to content

Commit

Permalink
Remove redundant check.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Aug 17, 2019
1 parent 4d01860 commit 979bf1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Horde/ActiveSync/Imap/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ public function getAttachmentsMimeParts()
$mpart->setDisposition('inline');
}
if ($mpart->getType() != 'application/ms-tnef' ||
($mpart->getType() == 'application/ms-tnef' && !$part = $this->_decodeTnefData($mpart))) {
empty($this->_options[self::ATTACHMENT_OPTIONS_DECODE_TNEF]) ||
(!$part = $this->_decodeTnefData($mpart))) {
$part = $mpart;
}
$mime_parts[] = $part;
Expand Down

0 comments on commit 979bf1e

Please sign in to comment.