Skip to content

Commit

Permalink
Don't use object property for intermediate values of the wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Aug 5, 2014
1 parent 0b34a1a commit ba52881
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions class.phpmailer.php
Expand Up @@ -2000,17 +2000,17 @@ protected function endBoundary($boundary)
*/
protected function setMessageType()
{
$this->message_type = array();
$type = array();
if ($this->alternativeExists()) {
$this->message_type[] = 'alt';
$type[] = 'alt';
}
if ($this->inlineImageExists()) {
$this->message_type[] = 'inline';
$type[] = 'inline';
}
if ($this->attachmentExists()) {
$this->message_type[] = 'attach';
$type[] = 'attach';
}
$this->message_type = implode('_', $this->message_type);
$this->message_type = implode('_', $type);
if ($this->message_type == '') {
$this->message_type = 'plain';
}
Expand Down

0 comments on commit ba52881

Please sign in to comment.