Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Puskás Zsolt authored Apr 18, 2018
2 parents ffcdf8f + 6426a6d commit 1d26d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Kohana/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,11 +495,11 @@ public function send($to = FALSE, $from = FALSE, $subject = FALSE, $body = FALSE

if (is_string($attachment))
{
$this->attach($attachment);
$this->attach_content($attachment);
}
elseif (is_array($attachment))
{
$this->attach($attachment['file'], $attachment['name']);
$this->attach_content($attachment['file'], $attachment['name']);
}
}

Expand Down

0 comments on commit 1d26d7b

Please sign in to comment.